You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
1.1 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--Hide the print button in stock.picking -->
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock.picking.view.form.inherit.hide.all.print.button</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='do_print_picking']" position="replace">
<button name="do_print_picking" string="Print" groups="!hide_all_print_button.hide_all_print_button_group_inventory_transfer"
type="object" attrs="{'invisible': [('state', '!=', 'assigned')]}" data-hotkey="o"/>
</xpath>
<xpath expr="//button[@name='%(stock.action_report_delivery)d']" position="replace">
<button name="%(stock.action_report_delivery)d" string="Print" attrs="{'invisible': [('state', '!=', 'done')]}"
type="action" groups="!hide_all_print_button.hide_all_print_button_group_inventory_transfer" data-hotkey="o"/>
</xpath>
</field>
</record>
</odoo>