IRC logs of #tryton for Tuesday, 2018-09-18 #tryton log beginning Tue Sep 18 00:00:01 CEST 2018
-!- giesen( has joined #tryton00:09
-!- phc25( has joined #tryton00:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:09
-!- csotelo_(~csotelo@ has joined #tryton01:09
-!- Nomad_1(~Nomad_@ has joined #tryton03:09
-!- yangoon( has joined #tryton04:09
-!- giesen( has joined #tryton07:09
-!- pedrot24(~pedrot@ has joined #tryton07:09
-!- benoliver99926( has joined #tryton08:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:09
-!- smorillo(bc56d678@gateway/web/cgi-irc/ has joined #tryton08:09
-!- mrichez( 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( has joined #tryton10:09
-!- nicoe( has joined #tryton10:09
-!- arosusi4(~arosusi@ has joined #tryton10:09
-!- mark-burnett1(~mark-burn@ has joined #tryton11:09
-!- thaneor( has joined #tryton11:09
-!- jmpoure( has joined #tryton12:09
-!- mariomop( has joined #tryton13:09
-!- tafelgeschirr(~tafelgesc@ has joined #tryton14:09
-!- thaneor(~lenovo3@ has joined #tryton15:09
-!- Brainscan28( has joined #tryton15:09
-!- csotelo(~csotelo@2001:1388:49c6:3dc6:d113:e244:d8cf:cb72) has joined #tryton15:09
-!- andrespoliti(~andrespol@ has joined #tryton16:09
-!- lucascastro( 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( 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( 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( 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
cedkandrespoliti: well this will prevent to save an intermediary state17:09
-!- Jikai(~Jikai@ has joined #tryton17:09
-!- Drego_UP18( has joined #tryton18:09
-!- jmpoure( has joined #tryton18:09
-!- JanGB( has joined #tryton18:09
-!- xuu23(~xuu@ has joined #tryton19:09
-!- lucascastro(~lucascast@ has joined #tryton19:09
-!- jmpoure( has joined #tryton20:09
-!- slvr_( has joined #tryton20:09
-!- giesen( has joined #tryton20:09
-!- giesen( has joined #tryton20:09
-!- dooglus3(~dooglus@ has joined #tryton21:09
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:09
-!- cbaines12(~cbaines@ has joined #tryton22:09
-!- smorillo(3e5248ee@gateway/web/cgi-irc/ has joined #tryton22:09
-!- smorillo(258799fc@gateway/web/cgi-irc/ has joined #tryton22:09
-!- Xellurat9(~Xellurat@ 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 2.16.0 by Marius Gedminas - find it at!