chat.freenode.net #tryton log beginning Wed May 26 12:00:01 AM CEST 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:34 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 04:51 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 05:16 | |
-!- Timitos(~kpreisler@2001:a61:4ac:5b01:762b:62ff:fe84:ed7e) has joined #tryton | 05:28 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:02 | |
-!- thaneor1(~ldlc6@r167-61-71-159.dialup.adsl.anteldata.net.uy) has joined #tryton | 07:31 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:31 | |
-!- rpit(~rpit@5.61.161.134) has joined #tryton | 07:51 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:57 | |
-!- mariomop(~quassel@181.29.189.235) has joined #tryton | 10:43 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 12:02 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 12:17 | |
-!- ludo2(~Thunderbi@193.33.57.196) has joined #tryton | 12:23 | |
mrichez | hi, 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 #tryton | 12:31 | |
LordVan_ | hi | 12:50 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 13:05 | |
mrichez | hi, 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 |
pokoli | mrichez: xml makes the button readonly for users that does not have access, with python code you can hide it | 13:53 |
mrichez | pokoli: but even if button hidden action will be available ? | 13:55 |
pokoli | mrichez: the idea is that if the user is not allowed to do an action shee see the button but readonly | 13:55 |
pokoli | mrichez: to know that there is some action that can be done by somebody else | 13:55 |
pokoli | mrichez: if the button is hidden the user should not be able to click it, so it's unabailalbe | 13:56 |
pokoli | mrichez: to remove the button you should remove the xml record and to update change its values | 13:56 |
mrichez | pokoli: but action is also available through the icon action | 13:56 |
pokoli | mrichez: it should not, IIRC the buttons actions are evaluated using the invisible attribute, so only show for records that satisfy the conditiion | 13:57 |
pokoli | mrichez: maybe you found a bug ... | 13:58 |
mrichez | pokoli: don't know, just a supposition | 13:58 |
mrichez | pokoli: so for update i use the original id ? id="stock.xxx' and then i can update group with <field name="group" ref=".... | 14:00 |
pokoli | mrichez: yes, you should be able to do so | 14:02 |
mrichez | pokoli: ok ,thanks! :-) | 14:02 |
-!- mariomop(~quassel@181.29.189.235) has joined #tryton | 14:41 | |
cedk | mrichez: ir.model.button-res.group is deactivable | 15:08 |
mrichez | cedk: ok | 16:55 |
-!- Timitos(~kpreisler@2001:a61:4ac:5b01:762b:62ff:fe84:ed7e) has joined #tryton | 19:20 | |
-!- ludo2(~Thunderbi@221.114.141.88.rev.sfr.net) has joined #tryton | 19:27 | |
-!- ludo3(~Thunderbi@2001:912:1480:380::1) has joined #tryton | 19:30 | |
-!- thaneor(~ldlc6@r167-61-69-33.dialup.adsl.anteldata.net.uy) has joined #tryton | 19:34 | |
-!- LordVan__(~LordVan@gentoo/developer/LordVan) has joined #tryton | 21:00 | |
-!- rat__(~LordVan@gentoo/developer/LordVan) has joined #tryton | 21:04 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!