mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_request_submit: Migration to 13.0
This commit is contained in:
@@ -1,20 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<!-- Copyright 2019 Open Source Integrators
|
||||
Copyright 2019 Eficent Business and IT Consulting Services, S.L.
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<!-- Copyright 2019 Open Source Integrators
|
||||
Copyright 2019-2020 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<record model="ir.ui.view" id="stock_request_order_form">
|
||||
<field name="name">stock.request.order.form</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">
|
||||
<button name="action_confirm" position="after">
|
||||
<button name="action_submit"
|
||||
string="Submit" type="object"
|
||||
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
|
||||
<button
|
||||
name="action_submit"
|
||||
string="Submit"
|
||||
type="object"
|
||||
attrs="{'invisible': [('state', '!=', 'draft')]}"
|
||||
/>
|
||||
</button>
|
||||
<button name="action_confirm" position="attributes">
|
||||
<attribute name="attrs">{'invisible': [('state', '!=', 'submitted')]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'invisible': [('state', '!=', 'submitted')]}</attribute>
|
||||
</button>
|
||||
<button name="action_draft" position="attributes">
|
||||
<attribute name="states">submitted,cancel</attribute>
|
||||
@@ -23,12 +28,15 @@
|
||||
<attribute name="states">draft,submitted,open</attribute>
|
||||
</button>
|
||||
<field name="stock_request_ids" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'submitted'])]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('state', 'not in', ['draft', 'submitted'])]}</attribute>
|
||||
</field>
|
||||
<field name="route_id" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft', 'submitted'])]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('state', 'not in', ['draft', 'submitted'])]}</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,20 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<!-- Copyright 2019 Open Source Integrators
|
||||
Copyright 2019 Eficent Business and IT Consulting Services, S.L.
|
||||
Copyright 2019-2020 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<record id="view_stock_request_form" model="ir.ui.view">
|
||||
<field name="name">stock.request.form</field>
|
||||
<field name="model">stock.request</field>
|
||||
<field name="inherit_id" ref="stock_request.view_stock_request_form"/>
|
||||
<field name="inherit_id" ref="stock_request.view_stock_request_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
|
||||
name="action_submit"
|
||||
string="Submit"
|
||||
type="object"
|
||||
attrs="{'invisible': [('state', '!=', 'draft')]}"
|
||||
/>
|
||||
</button>
|
||||
<button name="action_confirm" position="attributes">
|
||||
<attribute name="attrs">{'invisible': [('state', '!=', 'submitted')]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'invisible': [('state', '!=', 'submitted')]}</attribute>
|
||||
</button>
|
||||
<button name="action_draft" position="attributes">
|
||||
<attribute name="states">submitted,cancel</attribute>
|
||||
@@ -24,5 +29,4 @@
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user