summaryrefslogtreecommitdiff
path: root/addons/mrp_subcontracting/views/stock_picking_views.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/mrp_subcontracting/views/stock_picking_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/mrp_subcontracting/views/stock_picking_views.xml')
-rw-r--r--addons/mrp_subcontracting/views/stock_picking_views.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/mrp_subcontracting/views/stock_picking_views.xml b/addons/mrp_subcontracting/views/stock_picking_views.xml
new file mode 100644
index 00000000..f035da8f
--- /dev/null
+++ b/addons/mrp_subcontracting/views/stock_picking_views.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="stock_picking_form_view" model="ir.ui.view">
+ <field name="name">stock.picking.form.view</field>
+ <field name="model">stock.picking</field>
+ <field name="inherit_id" ref="stock.view_picking_form" />
+ <field name="arch" type="xml">
+ <xpath expr="//button[@name='button_validate'][hasclass('o_btn_validate')]" position="before">
+ <field name="display_action_record_components" invisible="1" />
+ <button name="action_record_components" class="oe_highlight" attrs="{'invisible': [('display_action_record_components', '=', False)]}" string="Record components" type="object"/>
+ </xpath>
+ <xpath expr="//field[@name='move_ids_without_package']//tree//button[@name='action_show_details']" position="after">
+ <field name="show_subcontracting_details_visible" invisible="1"/>
+ <button name="action_show_subcontract_details" string="Register components for subcontracted product" type="object" icon="fa-sitemap"
+ width="0.1" attrs="{'invisible': [('show_subcontracting_details_visible', '=', False)]}"/>
+ </xpath>
+ </field>
+ </record>
+</odoo>
+