IRC logs of #tryton for Wednesday, 2021-05-26

chat.freenode.net #tryton log beginning Wed May 26 12:00:01 AM CEST 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:34
-!- springwurm(~springwur@5.104.149.54) has joined #tryton04:51
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton05:16
-!- Timitos(~kpreisler@2001:a61:4ac:5b01:762b:62ff:fe84:ed7e) has joined #tryton05:28
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:02
-!- thaneor1(~ldlc6@r167-61-71-159.dialup.adsl.anteldata.net.uy) has joined #tryton07:31
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:31
-!- rpit(~rpit@5.61.161.134) has joined #tryton07:51
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:57
-!- mariomop(~quassel@181.29.189.235) has joined #tryton10:43
-!- springwurm(~springwur@5.104.149.54) has joined #tryton12:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton12:17
-!- ludo2(~Thunderbi@193.33.57.196) has joined #tryton12:23
mrichezhi, in the workflow i would like to allow some steps to be executed by a group and final step 'done' restricted to another group. Could it be done simply with xml by linking button 'Done' to specific group ? Or should i check also in python code ?12:23
-!- rmu|w(~robert@cpe90-146-69-94.liwest.at) has joined #tryton12:31
LordVan_hi12:50
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton13:05
mrichezhi, following my previous question: how to update or remove group linked on a button with "ir.model.button-res.group" ? I mean button 'Done' is linked to 'group_stock', i want to remove 'group_stock' and allow this button to a new group 'validate_shipment'13:45
pokolimrichez: xml makes the button readonly for users that does not have access, with python code you can hide it13:53
mrichezpokoli: but even if button hidden action will be available ?13:55
pokolimrichez: the idea is that if the user is not allowed to do an action shee see the button but readonly13:55
pokolimrichez: to know that there is some action that can be done by somebody else13:55
pokolimrichez: if the button is hidden the user should not be able to click it, so it's unabailalbe13:56
pokolimrichez: to remove the button you should remove the xml record and to update change its values13:56
mrichezpokoli: but action is also available through the icon action13:56
pokolimrichez: it should not, IIRC the buttons actions are evaluated using the invisible attribute, so only show for records that satisfy the conditiion13:57
pokolimrichez: maybe you found a bug ...13:58
mrichezpokoli: don't know, just a supposition13:58
mrichezpokoli: so for update i use the original id ? id="stock.xxx'  and then i can update group with <field name="group" ref="....14:00
pokolimrichez: yes, you should be able to do so14:02
mrichezpokoli: ok ,thanks! :-)14:02
-!- mariomop(~quassel@181.29.189.235) has joined #tryton14:41
cedkmrichez: ir.model.button-res.group is deactivable15:08
mrichezcedk: ok16:55
-!- Timitos(~kpreisler@2001:a61:4ac:5b01:762b:62ff:fe84:ed7e) has joined #tryton19:20
-!- ludo2(~Thunderbi@221.114.141.88.rev.sfr.net) has joined #tryton19:27
-!- ludo3(~Thunderbi@2001:912:1480:380::1) has joined #tryton19:30
-!- thaneor(~ldlc6@r167-61-69-33.dialup.adsl.anteldata.net.uy) has joined #tryton19:34
-!- LordVan__(~LordVan@gentoo/developer/LordVan) has joined #tryton21:00
-!- rat__(~LordVan@gentoo/developer/LordVan) has joined #tryton21:04

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