mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
pre-commit update
This commit is contained in:
@@ -1,41 +1,54 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!-- Copyright 2019 Kitti U. - Ecosoft <carlos.dauden@tecnativa.com>
|
<!-- Copyright 2019 Kitti U. - Ecosoft <carlos.dauden@tecnativa.com>
|
||||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
||||||
|
|
||||||
<odoo>
|
<odoo>
|
||||||
|
<record id="view_picking_form" model="ir.ui.view">
|
||||||
<record id="view_picking_form" model="ir.ui.view">
|
<field name="name">stock.picking.form</field>
|
||||||
<field name="name">stock.picking.form</field>
|
<field name="model">stock.picking</field>
|
||||||
<field name="model">stock.picking</field>
|
<field name="inherit_id" ref="stock.view_picking_form" />
|
||||||
<field name="inherit_id" ref="stock.view_picking_form"/>
|
<field name="arch" type="xml">
|
||||||
<field name="arch" type="xml">
|
<xpath expr="/form/sheet/notebook/page[@name='extra']" position="before">
|
||||||
<xpath expr="/form/sheet/notebook/page[@name='extra']" position="before">
|
<page
|
||||||
<page string="Kit Helper" attrs="{'invisible': [('has_product_kit', '=', False)]}">
|
string="Kit Helper"
|
||||||
<p class="oe_grey">
|
attrs="{'invisible': [('has_product_kit', '=', False)]}"
|
||||||
|
>
|
||||||
|
<p class="oe_grey">
|
||||||
To deliver partial product kits, you can use this tab to help calculate
|
To deliver partial product kits, you can use this tab to help calculate
|
||||||
quantity and auto fill in "Done" column in Operations tab.<br/>
|
quantity and auto fill in "Done" column in Operations tab.<br />
|
||||||
<ol>
|
<ol>
|
||||||
<li>Click => Show Product Kit</li>
|
<li>Click => Show Product Kit</li>
|
||||||
<li>Edit and fill in required quantity</li>
|
<li>Edit and fill in required quantity</li>
|
||||||
<li>Click Assign Operation Quantity</li>
|
<li>Click Assign Operation Quantity</li>
|
||||||
<li>Check result in Operations tab</li>
|
<li>Check result in Operations tab</li>
|
||||||
</ol>
|
</ol>
|
||||||
</p>
|
</p>
|
||||||
<field name="has_product_kit" invisible="1"/>
|
<field name="has_product_kit" invisible="1" />
|
||||||
<button name="show_product_kit" type="object" string="⇒ Show Product Kit" class="oe_link"
|
<button
|
||||||
attrs="{'invisible': ['|', ('product_kit_helper_ids', '!=', []), ('state', 'in', ['done', 'cancel'])]}"/>
|
name="show_product_kit"
|
||||||
<button name="action_product_kit_helper" type="object" string="Assign Operation Quantity"
|
type="object"
|
||||||
class="oe_highlight" attrs="{'invisible': ['|', ('product_kit_helper_ids', '=', []), ('state', 'in', ['done', 'cancel'])]}"/>
|
string="⇒ Show Product Kit"
|
||||||
<field name="product_kit_helper_ids" attrs="{'invisible': [('product_kit_helper_ids', '=', [])]}">
|
class="oe_link"
|
||||||
<tree editable="bottom" create="0" delete="0">
|
attrs="{'invisible': ['|', ('product_kit_helper_ids', '!=', []), ('state', 'in', ['done', 'cancel'])]}"
|
||||||
<field name="product_id"/>
|
/>
|
||||||
<field name="product_uom_qty"/>
|
<button
|
||||||
<field name="product_uom" groups="uom.group_uom"/>
|
name="action_product_kit_helper"
|
||||||
</tree>
|
type="object"
|
||||||
</field>
|
string="Assign Operation Quantity"
|
||||||
</page>
|
class="oe_highlight"
|
||||||
</xpath>
|
attrs="{'invisible': ['|', ('product_kit_helper_ids', '=', []), ('state', 'in', ['done', 'cancel'])]}"
|
||||||
</field>
|
/>
|
||||||
</record>
|
<field
|
||||||
|
name="product_kit_helper_ids"
|
||||||
|
attrs="{'invisible': [('product_kit_helper_ids', '=', [])]}"
|
||||||
|
>
|
||||||
|
<tree editable="bottom" create="0" delete="0">
|
||||||
|
<field name="product_id" />
|
||||||
|
<field name="product_uom_qty" />
|
||||||
|
<field name="product_uom" groups="uom.group_uom" />
|
||||||
|
</tree>
|
||||||
|
</field>
|
||||||
|
</page>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user