forked from OCA/manufacture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstock_picking_views.xml
20 lines (19 loc) · 1.23 KB
/
stock_picking_views.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>