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.
26 lines
1.5 KiB
26 lines
1.5 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!--Hide print button in account.move-->
|
|
<record id="view_move_form" model="ir.ui.view">
|
|
<field name="name">account.move.view.form.inherit.hide_all_print_button</field>
|
|
<field name="model">account.move</field>
|
|
<field name="inherit_id" ref="account.view_move_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//button[@name='action_invoice_sent']" position="replace">
|
|
<button name="action_invoice_sent"
|
|
type="object"
|
|
string="Send & Print"
|
|
attrs="{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', True), ('move_type', 'not in', ('out_invoice', 'out_refund'))]}"
|
|
class="oe_highlight"
|
|
data-hotkey="y" groups="!hide_all_print_button.hide_all_print_button_group_invoice"/>
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_invoice_sent']" position="replace">
|
|
<button name="action_invoice_sent"
|
|
type="object"
|
|
string="Send & Print"
|
|
attrs="{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', False), ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}"
|
|
data-hotkey="y" groups="!hide_all_print_button.hide_all_print_button_group_invoice"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|