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:
@@ -23,7 +23,6 @@
|
|||||||
string="Confirm"
|
string="Confirm"
|
||||||
type="object"
|
type="object"
|
||||||
attrs="{'invisible': [('state', 'not in', ['draft'])]}"
|
attrs="{'invisible': [('state', 'not in', ['draft'])]}"
|
||||||
groups="stock_request.group_stock_request_manager"
|
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
name="action_cancel"
|
name="action_cancel"
|
||||||
|
|||||||
@@ -7,18 +7,20 @@
|
|||||||
<field name="model">stock.request.order</field>
|
<field name="model">stock.request.order</field>
|
||||||
<field name="inherit_id" ref="stock_request.stock_request_order_form" />
|
<field name="inherit_id" ref="stock_request.stock_request_order_form" />
|
||||||
<field name="arch" type="xml">
|
<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">
|
<button name="action_confirm" position="attributes">
|
||||||
|
<attribute name="name">action_submit</attribute>
|
||||||
<attribute
|
<attribute
|
||||||
name="attrs"
|
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>
|
||||||
<button name="action_draft" position="attributes">
|
<button name="action_draft" position="attributes">
|
||||||
<attribute name="states">submitted,cancel</attribute>
|
<attribute name="states">submitted,cancel</attribute>
|
||||||
|
|||||||
Reference in New Issue
Block a user