Files
Odoo-Build/snippets/account.view_move_form.replace_button_scan_wizzard.xml
T
2025-01-03 14:39:51 +01:00

10 lines
638 B
XML

<?xml version="1.0"?>
<data inherit_id="account.view_move_form" priority="50">
<xpath expr="//button[@name='get_import_wizard']" position="replace">
<button type="object" name="get_import_wizard" string="Scan next QR Bill" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"/>
</xpath>
<xpath expr="//button[@name='get_update_reference_wizard']" position="replace">
<button type="object" class="btn-primary o_button_payment_reference" name="get_update_reference_wizard" help="Update reference with scan" string="Scan QR" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"/>
</xpath>
</data>