IRC logs of #tryton for Sunday, 2022-03-20

irc.libera.chat #tryton log beginning Sun Mar 20 12:00:01 AM CET 2022
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:51
-!- ChanServ changed mode/#tryton -> +o cedk 23:51
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:49
-!- ChanServ changed mode/#tryton -> +o cedk 02:49
-!- SISalp(~SISalp@51.sisalp.net) has joined #tryton09:17
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:10
-!- ChanServ changed mode/#tryton -> +o cedk 10:10
-!- rpit(~rpit@p200300c88f061600c60cb618196779ef.dip0.t-ipconnect.de) has joined #tryton11:33
-!- brokencycle(~brokencyc@2a02:c7f:f6f4:4200:dae5:9bc:ad9a:c64d) has joined #tryton12:36
-!- SISalp(~SISalp@51.sisalp.net) has joined #tryton17:18
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:25f1:c49:2ee7:275e) has joined #tryton18:23
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton19:15
-!- ChanServ changed mode/#tryton -> +o cedk 19:15
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton19:52
-!- ChanServ changed mode/#tryton -> +o cedk 19:52
-!- LordVan(~lordvan@gentoo/developer/lordvan) has joined #tryton20:31
LordVanhi. I got a problem .. I have custom sale line fields that have a field that is required and read only if the sale state is not draft .. now normally that is no issue, but I want to use sale_amendment to add a sale position now, but cannot do it because the sale is not in draft state(there is an invoice already too) .. how can i change the readonly requirement to *not* act when it is caused/called by sale_amendment  ?20:33
LordVanstates = { 'readonly': ((Eval('sale_state') != 'draft') |   Eval('real_product')),                        }, 20:35
LordVanis the line that causes the "problem" now20:35
cedkLordVan: readonly is not enforced on server side when amendment is applied21:52
LordVancedk, yes but the client makes it readonly21:53
LordVanso i cannot enter somethign in a required field and therefore cannot save the new sale line21:54
cedkLordVan: I do not understand, the amendment is a different model21:55
LordVanwell i try to add a new sale line with amendment21:56
LordVanand it shows me the sale line form21:57
LordVanbut all read only cuz sale_state is not "draft"21:57
LordVanthat is not just my fields of course also product, amount, price,.. for creating a new sale line21:57
LordVanchanging an existing sale line works just fine 21:58
cedkamendment can not be used to add lines, you just create a new sale22:01
-!- LordVan(~lordvan@gentoo/developer/lordvan) has joined #tryton22:06
LordVansorry I had connection issues. will have to go offline now but back in the morning22:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:47
-!- ChanServ changed mode/#tryton -> +o cedk 22:47

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