chat.freenode.net #tryton log beginning Thu Feb 7 00:00:01 CET 2019 | ||
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton | 23:01 | |
-!- thaneor(~lenovo3@179.26.143.143) has joined #tryton | 00:10 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:17 | |
-!- Cullran(~Cullran@136.0.0.107) has joined #tryton | 01:13 | |
-!- Cullran(~Cullran@136.0.0.107) has left #tryton | 01:13 | |
-!- aleshark(~aleshark@103.25.59.84) has joined #tryton | 03:08 | |
-!- aleshark(~aleshark@103.25.59.84) has left #tryton | 03:08 | |
-!- yangoon(~mathiasb@i59F52409.versanet.de) has joined #tryton | 03:11 | |
-!- sturzus(~sturzus@103.25.59.88) has joined #tryton | 03:39 | |
-!- sturzus(~sturzus@103.25.59.88) has left #tryton | 03:39 | |
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton | 07:24 | |
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton | 07:29 | |
-!- ion_cebotari(~ion@232.117.235.77.dyn.idknet.com) has joined #tryton | 07:38 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 07:55 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:07 | |
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton | 08:25 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 08:35 | |
-!- rpit(~rpit@p200300C88F2690007460640B7B657F84.dip0.t-ipconnect.de) has joined #tryton | 08:36 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 08:44 | |
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton | 08:51 | |
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton | 09:24 | |
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton | 09:36 | |
-!- ion_cebotari(~ion@232.117.235.77.dyn.idknet.com) has joined #tryton | 09:54 | |
-!- udono(~udono@188-142-067-156.ip-addr.inexio.net) has joined #tryton | 10:13 | |
-!- mariomop(~quassel@host73.201-253-198.telecom.net.ar) has joined #tryton | 10:55 | |
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton | 11:26 | |
-!- nzaniela(~nzaniela@41.80.207.74) has joined #tryton | 11:38 | |
-!- thaneor1(~lenovo3@179.26.5.173) has joined #tryton | 12:11 | |
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton | 12:40 | |
-!- csotelo_(~csotelo@179.7.225.95) has joined #tryton | 13:16 | |
mrichez | hi, is the states={ 'required':...} a priority against 'required = True' in a field definition ? Or should i first override to set required = False and the define the state ? | 14:53 |
---|---|---|
nicoe | mrichez: It doesn't make sense to have required=True for a field and required defined in the states | 14:57 |
nicoe | mrichez: because required=True in the fields will make the column not nullable | 14:57 |
nicoe | mrichez: in the sql database | 14:57 |
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton | 14:58 | |
mrichez | nicoe: so i have to set required = False and then define my state 'required' with my evaluation | 15:01 |
cedk | mrichez: I think states prevails, but as nicoe said required will be enforced on server side | 15:02 |
cedk | so it should be used only to allow client not filling it but you need code on server side to fill it | 15:02 |
mrichez | cedk: it concerns a description field which is required , i would like to customize to set this field required only if party is empty | 15:05 |
cedk | mrichez: it is usually a bad idea to try to remove required from standard because other code may rely on it | 15:06 |
mrichez | cedk: indeed, i found another place where this field is used :-) I forget my update | 15:08 |
mrichez | cedk: i think it's linked to legacy code, it concerns sale_opportunity module, description is required and used to create the sale but description in the sale module is not required... And in our case, users don't know what to type in the field description as they always write a party... Maybe i'll use a default value for this field.. | 15:14 |
cedk | mrichez: humm, it looks like an unecessary constraint | 15:16 |
mrichez | cedk: i think so | 15:16 |
mrichez | cedk: should i open an issue to remove this constraint ? | 15:16 |
cedk | mrichez: yes please | 15:16 |
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton | 15:17 | |
mrichez | cedk: ok | 15:17 |
mrichez | cedk: https://bugs.tryton.org/issue8092 | 15:22 |
csotelo_ | Hi all, I have applied this article [http://www.b2ck.com/~ced/blog/tryton_namespace.html] to share parties, however I have an issue on create relation ships between parties and users, since on party there is a relationship to the related user on the res.user model on my first scheme, then if I want to create a relationship bewteen a party and my second scheme, the database constraint restriction to the res_user table breaks the relationship, I was | 15:37 |
csotelo_ | guessing on drop that constraint, and for been honest all constraints on party_party since all of them are point to fist scheme tables, what do you think? cedk any suggest? | 15:37 |
csotelo_ | cedk, sorry to mention on the chat, but since it is your article I do the mention | 15:38 |
cedk | csotelo_: there is no more foreign key constraint for create_uid and write_uid | 15:40 |
cedk | https://bugs.tryton.org/issue4925 | 15:41 |
csotelo_ | "party_party_internal_user_fkey" FOREIGN KEY (internal_user) REFERENCES scheme2.res_user(id) ON DELETE SET NULL | 15:41 |
csotelo_ | cedk, I refer to insternal user relationship | 15:42 |
csotelo_ | I am using tryton 4.2 | 15:42 |
cedk | csotelo_: I do not know what that is | 15:42 |
csotelo_ | cedk, it is created for the party_party and res_user relationship to associate a party to a user | 15:43 |
csotelo_ | cedk, I have found where is the relationship between them, it is on health/health.py:426 line | 15:45 |
csotelo_ | and, yes, It was created to associate a party to a tryton user | 15:47 |
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton | 15:48 | |
csotelo_ | cedk, what do you think on drop constraints? | 15:50 |
csotelo_ | according the https://bugs.tryton.org/issue4925 it could look ok | 15:50 |
cedk | csotelo_: look very suspicious code | 15:52 |
csotelo_ | yes, I know... and for practical use, break my implementation. At now, drop constraints work for me, I hope find later a better way to manage that | 15:53 |
cedk | csotelo_: you should see with GNU Health why it is there and why mixing technical stuff with referential data | 15:55 |
csotelo_ | but is probably a nice proposal to implement since could be ok associate a party to a user | 15:55 |
csotelo_ | cedk, Yes, but an opinion from the article author, is a nice point to start this topic | 15:55 |
-!- ion_cebotari(~ion@232.117.235.77.dyn.idknet.com) has joined #tryton | 16:12 | |
pokoli | csotelo_: the user constraint is removed on tryton 4.4 | 18:04 |
csotelo_ | pokoli, nice too know, thanks! | 18:29 |
csotelo_ | I will update that | 18:30 |
-!- lukio(~lukio@190.191.95.243) has joined #tryton | 19:26 | |
lukio | Hi everyone. Perhaps this is a dumb question, but I need to cancel a payment of an invoice, and I don't found how to achieve it. At Argentina, we develop our own suite to achieve the payments, and we have the posibility to cancel the payment (so a cancel move is generated). Here, I have an implementation that I'm not using this suite, and I need to cancel it but I don't understand how. | 19:29 |
lukio | Thanks in advance! | 19:30 |
Timitos | lukio: if i remember correctly you only need to unreconcile the payment and the invoice. that should do it | 20:25 |
lukio | Hi Timitos, thanks! As u said, I understand that it should work as u said (I took a look at http://hg.tryton.org/modules/account_invoice/file/tip/tests/scenario_invoice.rst#l372) | 20:27 |
lukio | but, how do i unreconcile the payment? I did not see any button or wizard to do it. | 20:29 |
Timitos | lukio: you mean on the client? if you open the move of the invoice from the invoice form view and then right click on the move line with the reconciliation then you have an action to undo the reconciliation there | 20:37 |
Timitos | you need to reload the invoice to see the result after executing the action like this | 20:38 |
lukio | Timitos: thanks a lot!! | 20:42 |
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton | 21:00 | |
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton | 21:52 | |
-!- lukio(~lukio@host182.190-136-121.telecom.net.ar) has joined #tryton | 22:20 | |
-!- lukio(~lukio@host182.190-136-121.telecom.net.ar) has left #tryton | 22:21 | |
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton | 22:33 | |
-!- mariomop(~quassel@host73.201-253-198.telecom.net.ar) has joined #tryton | 22:39 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!