stock_picking_views.xml 1.5 KB

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="stock_picking_form_view" model="ir.ui.view">
  4. <field name="name">stock.picking.form.view</field>
  5. <field name="model">stock.picking</field>
  6. <field name="inherit_id" ref="stock.view_picking_form" />
  7. <field name="arch" type="xml">
  8. <xpath expr="//button[@name='button_validate'][hasclass('o_btn_validate')]" position="before">
  9. <field name="display_action_record_components" invisible="1"/>
  10. <button name="action_record_components" class="oe_highlight" attrs="{'invisible': [('display_action_record_components', '!=', 'mandatory')]}" string="Record components" type="object" data-hotkey="shift+x"/>
  11. <button name="action_record_components" attrs="{'invisible': [('display_action_record_components', '!=', 'facultative')]}" string="Record components" type="object" data-hotkey="shift+x"/>
  12. </xpath>
  13. <xpath expr="//field[@name='move_ids_without_package']//tree//button[@name='action_show_details']" position="after">
  14. <field name="show_subcontracting_details_visible" invisible="1"/>
  15. <button name="action_show_subcontract_details" string="Register components for subcontracted product" type="object" icon="fa-sitemap"
  16. width="0.1" attrs="{'invisible': [('show_subcontracting_details_visible', '=', False)]}"/>
  17. </xpath>
  18. </field>
  19. </record>
  20. </odoo>