IRC logs of #tryton for Thursday, 2022-11-03

irc.libera.chat #tryton log beginning Thu Nov 3 12:00:01 AM CET 2022
-!- springwurm(~springwur@5.104.149.54) has joined #tryton06:31
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:db7c:11fb:1fc6:3112) has joined #tryton06:59
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton07:13
LordVanhi. 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 #tryton07:42
-!- ChanServ changed mode/#tryton -> +o cedk 07:42
-!- rpit(~rpit@p200300c88f3b7e00ca0d9a1455ec95df.dip0.t-ipconnect.de) has joined #tryton08:30
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton08:37
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton08:56
-!- htgoebel(~hartmut@p200300d5df1eb000737eb182b543f9eb.dip0.t-ipconnect.de) has joined #tryton10:10
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton13:05
-!- springwurm(~springwur@2a01:76c0:302:ab00::39b) has joined #tryton13:11
mrichezwhen 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 #tryton13:20
cedkmrichez: tree_invisible like that it is still visible in form13:22
mrichezcedk:ok, thanks13:23
mrichezcedk: button is invisible but column name is still there13:27
cedkmrichez: ???13:49
mrichezcedk: button is hidden in the treeview, but column where button was displayed is still there13:50
cedkmrichez: this is not what I experience with tree_invisible13:51
mrichezcedk: ('/tree/button[@name="update_quantity_wizard"]', 'tree_invisible', Eval('inventory_move_in', False)),13:59
cedkmrichez: tree_invisible is static14:00
cedkoops it can be a PYSON but evaluated only with the action context14:02
cedkso I guess the PYSON is not evaluated to True but you have a states on the button that makes them invisible14:03
mrichezcedk: indeed i also have a state on the button14:09
mrichezcedk: i removed the state on the button and did both evaluations on the view_attributes, button is hidden but column is still there14:22
mrichezcedk: 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 #tryton15:28
-!- htgoebel(~hartmut@p200300d5df1eb000737eb182b543f9eb.dip0.t-ipconnect.de) has left #tryton16:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22: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/!