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 #tryton22:26
-!- phc25(~phc@cable-178-148-201-170.dynamic.sbb.rs) has joined #tryton22:46
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:31
-!- csotelo_(~csotelo@190.236.147.175) has joined #tryton23:50
-!- Nomad_1(~Nomad_@189.4.134.238) has joined #tryton01:58
-!- yangoon(~mathiasb@i59F4D64F.versanet.de) has joined #tryton02:08
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton05:48
-!- pedrot24(~pedrot@220.169.133.22) has joined #tryton05:54
-!- benoliver99926(~benoliver@softbank060105104142.bbtec.net) has joined #tryton06:27
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:29
-!- smorillo(bc56d678@gateway/web/cgi-irc/kiwiirc.com/ip.188.86.214.120) has joined #tryton06:38
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:00
-!- JanGB(~jan@2a02:810a:143f:f822:63af:b5ef:1410:6c4c) has joined #tryton07:03
-!- JanGB(~jan@2a02:810a:143f:f822:63af:b5ef:1410:6c4c) has left #tryton07:06
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton08:07
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton08:36
-!- arosusi4(~arosusi@124.105.7.51) has joined #tryton08:53
-!- mark-burnett1(~mark-burn@2.134.163.168) has joined #tryton09:00
-!- thaneor(~lenovo3@r179-24-156-54.dialup.adsl.anteldata.net.uy) has joined #tryton09:09
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton10:10
-!- mariomop(~quassel@host240.190-225-130.telecom.net.ar) has joined #tryton11:07
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton12:06
-!- thaneor(~lenovo3@179.26.16.16) has joined #tryton13:18
-!- Brainscan28(~Brainscan@host-cotesma-174-32.smandes.com.ar) has joined #tryton13:23
-!- csotelo(~csotelo@2001:1388:49c6:3dc6:d113:e244:d8cf:cb72) has joined #tryton13:49
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton14:12
-!- lucascastro(~lucascast@177-185-139-186.isotelco.net.br) has joined #tryton14:12
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 changes14:14
andrespolitiso the value no longer is valid according to its domain14:15
smorilloandrespoliti: I'm afraid it is only for m2m,o2m,o2o14:17
smorilloandrespoliti: but you can add an If statement in domain14:18
cedkandrespoliti: Tryton enforce good practice like static Model14:18
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton14:18
cedkandrespoliti: if your domain can not work when the record is saved, there is something wrong with the design14:19
andrespolitiits for debts payment. A debt has an original amount, many partial payments and a remaining amount14:20
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 != 014:21
cedkandrespoliti: account_payment manage that14:21
andrespoliticedk: can you point me to how you solved that?14:22
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton14:24
pokoliandrespoliti: there is a functional field that gets updated when a new payment is done, this field is used on the domain14:25
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 domain14:37
pokoliandrespoliti: You have to use an If clause to make the domain only applicable for non completed payments14:44
pokoliandrespoliti: but this is already implemented by the account_payment module, are you self implementing the same funcionality?14:44
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 hehe14:48
cedkandrespoliti: maybe it is time to make the switch14:56
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton15:10
andrespolitii solved it with an If statement in the domain15:26
andrespolitiIf((Eval('id', 0) < 0), ('to_deduct', '!=', Decimal(0)), ())15:26
andrespolitiif the record is not yet saved, apply the domain15:26
andrespolitithanks!15:26
cedkandrespoliti: well this will prevent to save an intermediary state15:34
-!- Jikai(~Jikai@105.101.221.179) has joined #tryton15:52
-!- Drego_UP18(~Drego_UP@host-cotesma-131-181.smandes.com.ar) has joined #tryton16:02
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton16:40
-!- JanGB(~jan@x2f7f965.dyn.telefonica.de) has joined #tryton16:54
-!- xuu23(~xuu@105.103.108.225) has joined #tryton17:25
-!- lucascastro(~lucascast@200.141.207.18) has joined #tryton17:31
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton18:29
-!- slvr_(~slvr_@51B6BC92.dsl.pool.telekom.hu) has joined #tryton18:31
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton18:39
-!- giesen(~ggiesen@ego.giesen.me) has joined #tryton18:51
-!- dooglus3(~dooglus@179.146.246.254) has joined #tryton19:27
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton20:01
-!- cbaines12(~cbaines@156.198.249.40) has joined #tryton20:05
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton20:45
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton20:50
-!- Xellurat9(~Xellurat@185.150.94.254) has joined #tryton21:21
-!- CME1(~CME@2402:800:6146:3d9b:ece4:264e:ae11:e9e3) has joined #tryton21:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:59

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