irc.libera.chat #tryton log beginning Thu Nov 3 12:00:01 AM CET 2022 | ||
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 06:31 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:db7c:11fb:1fc6:3112) has joined #tryton | 06:59 | |
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton | 07:13 | |
LordVan | hi. quick question: is there no way to cancel a sale that has a delivery note (That is cancelled already) ? | 07:13 |
---|---|---|
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:42 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 07:42 | |
-!- rpit(~rpit@p200300c88f3b7e00ca0d9a1455ec95df.dip0.t-ipconnect.de) has joined #tryton | 08:30 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 08:37 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 08:56 | |
-!- htgoebel(~hartmut@p200300d5df1eb000737eb182b543f9eb.dip0.t-ipconnect.de) has joined #tryton | 10:10 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 13:05 | |
-!- springwurm(~springwur@2a01:76c0:302:ab00::39b) has joined #tryton | 13:11 | |
mrichez | when having a button in a treeview, is it better to use invisible state to hide button or using view_attributes with 'tree_invisible' ? | 13:12 |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 13:20 | |
cedk | mrichez: tree_invisible like that it is still visible in form | 13:22 |
mrichez | cedk:ok, thanks | 13:23 |
mrichez | cedk: button is invisible but column name is still there | 13:27 |
cedk | mrichez: ??? | 13:49 |
mrichez | cedk: button is hidden in the treeview, but column where button was displayed is still there | 13:50 |
cedk | mrichez: this is not what I experience with tree_invisible | 13:51 |
mrichez | cedk: ('/tree/button[@name="update_quantity_wizard"]', 'tree_invisible', Eval('inventory_move_in', False)), | 13:59 |
cedk | mrichez: tree_invisible is static | 14:00 |
cedk | oops it can be a PYSON but evaluated only with the action context | 14:02 |
cedk | so I guess the PYSON is not evaluated to True but you have a states on the button that makes them invisible | 14:03 |
mrichez | cedk: indeed i also have a state on the button | 14:09 |
mrichez | cedk: i removed the state on the button and did both evaluations on the view_attributes, button is hidden but column is still there | 14:22 |
mrichez | cedk: i just found this example: https://hg.tryton.org/modules/account/file/tip/account.py#l376, understood about action context... :-) | 15:08 |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 15:28 | |
-!- htgoebel(~hartmut@p200300d5df1eb000737eb182b543f9eb.dip0.t-ipconnect.de) has left #tryton | 16:01 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:06 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 22:06 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!