IRC logs of #tryton for Tuesday, 2018-09-18

chat.freenode.net #tryton log beginning Tue Sep 18 00:00:01 CEST 2018
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton00:09
-!- phc25(~phc@cable-178-148-201-170.dynamic.sbb.rs) has joined #tryton00:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:09
-!- csotelo_(~csotelo@190.236.147.175) has joined #tryton01:09
-!- Nomad_1(~Nomad_@189.4.134.238) has joined #tryton03:09
-!- yangoon(~mathiasb@i59F4D64F.versanet.de) has joined #tryton04:09
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton07:09
-!- pedrot24(~pedrot@220.169.133.22) has joined #tryton07:09
-!- benoliver99926(~benoliver@softbank060105104142.bbtec.net) has joined #tryton08:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:09
-!- smorillo(bc56d678@gateway/web/cgi-irc/kiwiirc.com/ip.188.86.214.120) has joined #tryton08:09
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton09:09
-!- JanGB(~jan@2a02:810a:143f:f822:63af:b5ef:1410:6c4c) has joined #tryton09:09
-!- JanGB(~jan@2a02:810a:143f:f822:63af:b5ef:1410:6c4c) has left #tryton09:09
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton10:09
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:09
-!- arosusi4(~arosusi@124.105.7.51) has joined #tryton10:09
-!- mark-burnett1(~mark-burn@2.134.163.168) has joined #tryton11:09
-!- thaneor(~lenovo3@r179-24-156-54.dialup.adsl.anteldata.net.uy) has joined #tryton11:09
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton12:09
-!- mariomop(~quassel@host240.190-225-130.telecom.net.ar) has joined #tryton13:09
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton14:09
-!- thaneor(~lenovo3@179.26.16.16) has joined #tryton15:09
-!- Brainscan28(~Brainscan@host-cotesma-174-32.smandes.com.ar) has joined #tryton15:09
-!- csotelo(~csotelo@2001:1388:49c6:3dc6:d113:e244:d8cf:cb72) has joined #tryton15:09
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton16:09
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton16:09
andrespolitihi, is it possible to define a default filter for a many2one? it can't be a domain because when the record is saved, the value the domain filters changes16:09
andrespolitiso the value no longer is valid according to its domain16:09
smorilloandrespoliti: I'm afraid it is only for m2m,o2m,o2o16:09
smorilloandrespoliti: but you can add an If statement in domain16:09
cedkandrespoliti: Tryton enforce good practice like static Model16:09
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton16:09
cedkandrespoliti: if your domain can not work when the record is saved, there is something wrong with the design16:09
andrespolitiits for debts payment. A debt has an original amount, many partial payments and a remaining amount16:09
andrespolitito make a partial payment, i have to select the debt, and i don't want to see all the totally paid debts, only the ones when remaining amount != 016:09
cedkandrespoliti: account_payment manage that16:09
andrespoliticedk: can you point me to how you solved that?16:09
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton16:09
pokoliandrespoliti: there is a functional field that gets updated when a new payment is done, this field is used on the domain16:09
andrespolitipokoli: yes, but when the payment is done, if the debt's remaining amount becomes 0, then it is no longer valid according to its domain16:09
pokoliandrespoliti: You have to use an If clause to make the domain only applicable for non completed payments16:09
pokoliandrespoliti: but this is already implemented by the account_payment module, are you self implementing the same funcionality?16:09
andrespolitipokoli: yes, it's a debt payment module i made a long time ago and the client just wants this change, if i had to do it again i would have used the tryton modules hehe16:09
cedkandrespoliti: maybe it is time to make the switch16:09
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton17:09
andrespolitii solved it with an If statement in the domain17:09
andrespolitiIf((Eval('id', 0) < 0), ('to_deduct', '!=', Decimal(0)), ())17:09
andrespolitiif the record is not yet saved, apply the domain17:09
andrespolitithanks!17:09
cedkandrespoliti: well this will prevent to save an intermediary state17:09
-!- Jikai(~Jikai@105.101.221.179) has joined #tryton17:09
-!- Drego_UP18(~Drego_UP@host-cotesma-131-181.smandes.com.ar) has joined #tryton18:09
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton18:09
-!- JanGB(~jan@x2f7f965.dyn.telefonica.de) has joined #tryton18:09
-!- xuu23(~xuu@105.103.108.225) has joined #tryton19:09
-!- lucascastro(~lucascast@200.141.207.18) has joined #tryton19:09
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton20:09
-!- slvr_(~slvr_@51B6BC92.dsl.pool.telekom.hu) has joined #tryton20:09
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton20:09
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton20:09
-!- dooglus3(~dooglus@179.146.246.254) has joined #tryton21:09
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:09
-!- cbaines12(~cbaines@156.198.249.40) has joined #tryton22:09
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton22:09
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton22:09
-!- Xellurat9(~Xellurat@185.150.94.254) has joined #tryton23:09
-!- CME1(~CME@2402:800:6146:3d9b:ece4:264e:ae11:e9e3) has joined #tryton23:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:09

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