mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
36 lines
1.5 KiB
XML
36 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright 2019 Marcelo Frare (Ass. PNLUG - Gruppo Odoo <http://odoo.pnlug.it>)
|
|
Copyright 2019 Stefano Consolaro (Ass. PNLUG - Gruppo Odoo <http://odoo.pnlug.it>)
|
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) -->
|
|
|
|
<odoo>
|
|
|
|
<!-- inherits inspection form view adding new fields plan_id, qty_checked
|
|
and disable total qty modification -->
|
|
<record model="ir.ui.view" id="qc_inspection_qty_checked">
|
|
<field name="name">qc.inspection.qty.checked</field>
|
|
<field name="model">qc.inspection</field>
|
|
<field name="inherit_id" ref="quality_control.qc_inspection_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="qty" position="attributes">
|
|
<attribute name="readonly">1</attribute>
|
|
<attribute name="string">Total quantity</attribute>
|
|
</field>
|
|
<field name="qty" position="after">
|
|
<field name="plan_id" readonly="1"/>
|
|
<field name="qty_checked" readonly="1"/>
|
|
</field>
|
|
<field name="success" position="after">
|
|
<button name="create_nonconformity" string="Add Nonconformity"
|
|
type="object" class="btn-danger"/>
|
|
</field>
|
|
<notebook position="inside">
|
|
<page string="Nonconformity">
|
|
<field name="inspection_ids"/>
|
|
</page>
|
|
</notebook>
|
|
</field>
|
|
</record>
|
|
</odoo>
|