[IMP] Purchase: don't display stat buttons if PO not confirmed
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,sent,purchase,done" readonly="1" />
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<div class="oe_button_box" name="button_box" attrs="{'invisible': [('state', 'not in', ('purchase', 'done', 'cancel'))]}">
|
||||
<button type="action"
|
||||
name="%(purchase_open_picking)d"
|
||||
class="oe_stat_button"
|
||||
|
||||
Reference in New Issue
Block a user