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.
 
 
 
 
 

28 lines
1.5 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--Reconfigured cheque related action buttons views -->
<record id="view_account_payment_form_inherited" model="ir.ui.view">
<field name="name">account.payment.view.form.inherit.odoo.print.cheque</field>
<field name="model">account.payment</field>
<field name="inherit_id"
ref="account_check_printing.view_account_payment_form_inherited"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='print_checks']" position="attributes">
<attribute name="invisible">
state != 'posted' or payment_method_code not in ['check_printing','pdc']
</attribute>
</xpath>
<xpath expr="//button[@name='unmark_as_sent']" position="after">
<button name="action_unmark_sent"
string="Unmark Sent"
type="object"
data-hotkey="l"
invisible="is_move_sent != True or state not in ['draft','cancel'] or payment_method_code not in ['check_printing','pdc']"/>
<button name="action_void_check"
string="Void Check"
type="object" data-hotkey="o"
invisible="is_move_sent != True or state in ['draft','cancel'] or payment_method_code not in ['check_printing','pdc']"/>
</xpath>
</field>
</record>
</odoo>