Hi, anyone can explain to hide button in shipment screen based on status in V10.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
2488
Views
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 -->
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Nov 23
|
387 | ||
|
0
Feb 23
|
967 | ||
|
3
Mar 18
|
20520 | ||
|
2
Jul 16
|
3548 | ||
|
1
Mar 15
|
8106 |