Skip to Content
Menu
This question has been flagged
2 Replies
2488 Views

Hi, anyone can explain to hide button in shipment screen based on status in V10.

Avatar
Discard
Best Answer

Use the 'attrs' for that purpose. Something like:

<button ... attrs="{'invisible': [('state', 'in', ['draft', 'done'])]}"/>
<!-- where state is the field of state of your shipment object;
'draft', 'done' - states on which button should be invisible -->
Avatar
Discard
Best Answer

Hi,

Other the attrs, you can use the states attribute also, like states="draft" , then the button only get visible in the draft state, you can see such examples in the sale order buttons.


Thanks

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 23
387
0
Feb 23
967
3
Mar 18
20520
2
Jul 16
3548
1
Mar 15
8106