mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] rma: limit state statusbar
This commit is contained in:
committed by
AaronHForgeFlow
parent
1dd8eb10c0
commit
7a74cc250e
@@ -84,13 +84,6 @@
|
||||
string="Back to Approved"
|
||||
attrs="{'invisible':[('state', '!=', 'done')]}"
|
||||
groups="rma.group_rma_customer_user"
|
||||
/>
|
||||
<button
|
||||
name="action_rma_done"
|
||||
type="object"
|
||||
string="Done"
|
||||
attrs="{'invisible':[('state', 'in', ('done', 'draft', 'canceled'))]}"
|
||||
groups="rma.group_rma_customer_user"
|
||||
/>
|
||||
<button
|
||||
name="action_rma_cancel"
|
||||
@@ -99,7 +92,12 @@
|
||||
attrs="{'invisible':[('state', 'in', ('done', 'canceled'))]}"
|
||||
groups="rma.group_rma_customer_user"
|
||||
/>
|
||||
<field name="state" widget="statusbar" nolabel="1" />
|
||||
<field
|
||||
name="state"
|
||||
widget="statusbar"
|
||||
statusbar_visible="draft,to_approve,approved,done"
|
||||
nolabel="1"
|
||||
/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div name="button_box" class="oe_button_box">
|
||||
|
||||
Reference in New Issue
Block a user