Files
stock-logistics-warehouse/stock_request_submit/views/stock_request_order_views.xml
Patrick Wilson e69e85f57d [14.0][MIG] stock_request_submit (Version 13.0 to 14.0)
[MIG] Prettier

[MIG] Rename uninstall_hook.py to hooks.py

[MIG] Added Uninstall Hook Test

[IMP] Black
2021-05-14 15:47:16 -06:00

42 lines
1.8 KiB
XML

<!-- 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). -->
<odoo>
<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="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="attrs"
>{'invisible': [('state', '!=', 'submitted')]}</attribute>
</button>
<button name="action_draft" position="attributes">
<attribute name="states">submitted,cancel</attribute>
</button>
<button name="action_cancel" position="attributes">
<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>
</field>
<field name="route_id" position="attributes">
<attribute
name="attrs"
>{'readonly': [('state', 'not in', ['draft', 'submitted'])]}</attribute>
</field>
</field>
</record>
</odoo>