mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] Prettier [MIG] Rename uninstall_hook.py to hooks.py [MIG] Added Uninstall Hook Test [IMP] Black
32 lines
1.3 KiB
XML
32 lines
1.3 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 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="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>
|
|
</record>
|
|
</odoo>
|