mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_request + stock_request_submit: Change the approach to Confirm and Submit buttons
Related to https://github.com/OCA/stock-logistics-warehouse/pull/1514#discussion_r1003779168
This commit is contained in:
@@ -7,18 +7,20 @@
|
||||
<field name="model">stock.request.order</field>
|
||||
<field name="inherit_id" ref="stock_request.stock_request_order_form" />
|
||||
<field name="arch" type="xml">
|
||||
<button name="action_confirm" position="after">
|
||||
<button
|
||||
name="action_submit"
|
||||
string="Submit"
|
||||
type="object"
|
||||
attrs="{'invisible': [('state', '!=', 'draft')]}"
|
||||
/>
|
||||
</button>
|
||||
<button name="action_confirm" position="attributes">
|
||||
<attribute name="name">action_submit</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'invisible': [('state', '!=', 'submitted')]}</attribute>
|
||||
>{'invisible': [('state', '!=', 'draft')]}</attribute>
|
||||
</button>
|
||||
<button name="action_submit" position="after">
|
||||
<button
|
||||
name="action_confirm"
|
||||
string="Submit"
|
||||
type="object"
|
||||
attrs="{'invisible': [('state', '!=', 'submitted')]}"
|
||||
groups="stock_request.group_stock_request_manager"
|
||||
/>
|
||||
</button>
|
||||
<button name="action_draft" position="attributes">
|
||||
<attribute name="states">submitted,cancel</attribute>
|
||||
|
||||
Reference in New Issue
Block a user