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