Files
Odoo-18.0-20251222/account_invoice_supplierinfo_update/views/account_invoice_view.xml
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

27 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_move_form" model="ir.ui.view">
<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_post']" position="after">
<button
name="check_supplierinfo"
string="Check Supplier Infos"
help="Check if the invoice information are similar from the supplier information"
class="oe_highlight"
type="object"
invisible="supplierinfo_ok or not partner_id or move_type not in ('in_invoice', 'in_refund') or state == 'cancel'"
/>
</xpath>
<field name="checked" position="before">
<field
name="supplierinfo_ok"
readonly="state == 'cancel'"
invisible="move_type not in ('in_invoice', 'in_refund')"
/>
</field>
</field>
</record>
</odoo>