irc.libera.chat #tryton log beginning Sun Mar 20 12:00:01 AM CET 2022 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:51 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 23:51 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 02:49 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 02:49 | |
-!- SISalp(~SISalp@51.sisalp.net) has joined #tryton | 09:17 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 10:10 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 10:10 | |
-!- rpit(~rpit@p200300c88f061600c60cb618196779ef.dip0.t-ipconnect.de) has joined #tryton | 11:33 | |
-!- brokencycle(~brokencyc@2a02:c7f:f6f4:4200:dae5:9bc:ad9a:c64d) has joined #tryton | 12:36 | |
-!- SISalp(~SISalp@51.sisalp.net) has joined #tryton | 17:18 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:25f1:c49:2ee7:275e) has joined #tryton | 18:23 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 19:15 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 19:15 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 19:52 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 19:52 | |
-!- LordVan(~lordvan@gentoo/developer/lordvan) has joined #tryton | 20:31 | |
LordVan | hi. 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 |
---|---|---|
LordVan | states = { 'readonly': ((Eval('sale_state') != 'draft') | Eval('real_product')), }, | 20:35 |
LordVan | is the line that causes the "problem" now | 20:35 |
cedk | LordVan: readonly is not enforced on server side when amendment is applied | 21:52 |
LordVan | cedk, yes but the client makes it readonly | 21:53 |
LordVan | so i cannot enter somethign in a required field and therefore cannot save the new sale line | 21:54 |
cedk | LordVan: I do not understand, the amendment is a different model | 21:55 |
LordVan | well i try to add a new sale line with amendment | 21:56 |
LordVan | and it shows me the sale line form | 21:57 |
LordVan | but all read only cuz sale_state is not "draft" | 21:57 |
LordVan | that is not just my fields of course also product, amount, price,.. for creating a new sale line | 21:57 |
LordVan | changing an existing sale line works just fine | 21:58 |
cedk | amendment can not be used to add lines, you just create a new sale | 22:01 |
-!- LordVan(~lordvan@gentoo/developer/lordvan) has joined #tryton | 22:06 | |
LordVan | sorry I had connection issues. will have to go offline now but back in the morning | 22:20 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22: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/!