27 lines
1.1 KiB
XML
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>
|