odoo18/custom_addons/cancellation_feature_cr/views/invoice_view.xml

26 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="account_move_inherit_form2" model="ir.ui.view">
<field name="name">account.move.inherit.form</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//header/button[@name='button_cancel'][2]" position="replace">
<button name="button_cancel" string="Cancel" type="object" groups="account.group_account_invoice"
data-hotkey="w" invisible=" state == 'cancel' "/>
</xpath>
</field>
</record>
<record id="account_payment_inherit_form" model="ir.ui.view">
<field name="name">account.payment.inherit.form</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_form"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='action_cancel']" position="replace">
<button name="action_cancel" string="Cancel" type="object" invisible=" state in ('cancel') "
data-hotkey="z"/>
</xpath>
</field>
</record>
</odoo>