Files
stock-logistics-warehouse/stock_request_mrp/views/mrp_production_views.xml
2020-09-02 10:56:22 +02:00

38 lines
1.5 KiB
XML

<?xml version="1.0" ?>
<!-- Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<odoo>
<record id="mrp_production_form_view" model="ir.ui.view">
<field name="name">mrp.production.form.inherit.stock.request.mrp</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view" />
<field
name="groups_id"
eval="[(4, ref('stock_request.group_stock_request_user'))]"
/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button
type="object"
name="action_view_stock_request"
class="oe_stat_button"
icon="fa-chain"
attrs="{'invisible':[('stock_request_ids', '=', [])]}"
>
<field
name="stock_request_count"
widget="statinfo"
string="Stock Requests"
/>
<field name="stock_request_ids" invisible="1" />
</button>
</xpath>
<xpath expr="/form/sheet/notebook" position="inside">
<page name="stock_requests" string="Stock Requests">
<field name="stock_request_ids" />
</page>
</xpath>
</field>
</record>
</odoo>