IRC logs of #tryton for Thursday, 2019-02-07

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 #tryton00:02
-!- thaneor(~lenovo3@179.26.143.143) has joined #tryton01:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:02
-!- Cullran(~Cullran@136.0.0.107) has joined #tryton02:02
-!- Cullran(~Cullran@136.0.0.107) has left #tryton02:02
-!- aleshark(~aleshark@103.25.59.84) has joined #tryton04:02
-!- aleshark(~aleshark@103.25.59.84) has left #tryton04:02
-!- yangoon(~mathiasb@i59F52409.versanet.de) has joined #tryton04:02
-!- sturzus(~sturzus@103.25.59.88) has joined #tryton04:02
-!- sturzus(~sturzus@103.25.59.88) has left #tryton04:02
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton08:02
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton08:02
-!- ion_cebotari(~ion@232.117.235.77.dyn.idknet.com) has joined #tryton08:02
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:02
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton09:02
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton09:02
-!- rpit(~rpit@p200300C88F2690007460640B7B657F84.dip0.t-ipconnect.de) has joined #tryton09:02
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton09:02
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton09:02
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton10:02
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton10:02
-!- ion_cebotari(~ion@232.117.235.77.dyn.idknet.com) has joined #tryton10:02
-!- udono(~udono@188-142-067-156.ip-addr.inexio.net) has joined #tryton11:02
-!- mariomop(~quassel@host73.201-253-198.telecom.net.ar) has joined #tryton11:02
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton12:02
-!- nzaniela(~nzaniela@41.80.207.74) has joined #tryton12:02
-!- thaneor1(~lenovo3@179.26.5.173) has joined #tryton13:02
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton13:02
-!- csotelo_(~csotelo@179.7.225.95) has joined #tryton14:02
mrichezhi, 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 ?15:02
nicoemrichez: It doesn't make sense to have required=True for a field and required defined in the states15:02
nicoemrichez: because required=True in the fields will make the column not nullable15:02
nicoemrichez: in the sql database15:02
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton15:02
mricheznicoe: so i have to set required = False and then define my state 'required' with my evaluation16:02
cedkmrichez: I think states prevails, but as nicoe said required will be enforced on server side16:02
cedkso it should be used only to allow client not filling it but you need code on server side to fill it16:02
mrichezcedk: it concerns a description field which is required , i would like to customize to set this field required only if party is empty16:02
cedkmrichez: it is usually a bad idea to try to remove required from standard because other code may rely on it16:02
mrichezcedk: indeed, i found another place where this field is used :-) I forget my update16:02
mrichezcedk: 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..16:02
cedkmrichez: humm, it looks like an unecessary constraint16:02
mrichezcedk: i think so16:02
mrichezcedk: should i open an issue to remove this constraint ?16:02
cedkmrichez: yes please16:02
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton16:02
mrichezcedk: ok16:02
mrichezcedk: https://bugs.tryton.org/issue809216:02
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 was16:02
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?16:02
csotelo_cedk, sorry to mention on the chat, but since it is your article I do the mention16:02
cedkcsotelo_: there is no more foreign key constraint for create_uid and write_uid16:02
cedkhttps://bugs.tryton.org/issue492516:02
csotelo_"party_party_internal_user_fkey" FOREIGN KEY (internal_user) REFERENCES scheme2.res_user(id) ON DELETE SET NULL16:02
csotelo_cedk, I refer to insternal user relationship16:02
csotelo_I am using tryton 4.216:02
cedkcsotelo_: I do not know what that is16:02
csotelo_cedk, it is created for the party_party and res_user relationship to associate a party to a user16:02
csotelo_cedk, I have found where is the relationship between them, it is on health/health.py:426 line16:02
csotelo_and, yes, It was created to associate a party to a tryton user16:02
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton16:02
csotelo_cedk, what do you think on drop constraints?16:02
csotelo_according the https://bugs.tryton.org/issue4925 it could look ok16:02
cedkcsotelo_: look very suspicious code16:02
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 that16:02
cedkcsotelo_: you should see with GNU Health why it is there and why mixing technical stuff with referential data16:02
csotelo_but is probably a nice proposal to implement since could be ok associate a party to a user16:02
csotelo_cedk, Yes, but an opinion from the article author, is a nice point to start this topic16:02
-!- ion_cebotari(~ion@232.117.235.77.dyn.idknet.com) has joined #tryton17:02
pokolicsotelo_: the user constraint is removed on tryton 4.419:02
csotelo_pokoli, nice too know, thanks!19:02
csotelo_I will update that19:02
-!- lukio(~lukio@190.191.95.243) has joined #tryton20:02
lukioHi 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.20:02
lukioThanks in advance!20:02
Timitoslukio: if i remember correctly you only need to unreconcile the payment and the invoice. that should do it21:02
lukioHi 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)21:02
lukiobut, how do i unreconcile the payment? I did not see any button or wizard to do it.21:02
Timitoslukio: 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 there21:02
Timitosyou need to reload the invoice to see the result after executing the action like this21:02
lukioTimitos: thanks a lot!!21:02
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:02
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton22:02
-!- lukio(~lukio@host182.190-136-121.telecom.net.ar) has joined #tryton23:02
-!- lukio(~lukio@host182.190-136-121.telecom.net.ar) has left #tryton23:02
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton23:02
-!- mariomop(~quassel@host73.201-253-198.telecom.net.ar) has joined #tryton23:02

Generated by irclog2html.py 2.16.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!