forked from OCA/account-invoicing
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaccount_invoice_view.xml
25 lines (25 loc) · 1.04 KB
/
account_invoice_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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='button_draft']" 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"
attrs="{'invisible': ['|', ('supplierinfo_ok', '=', True), ('partner_id', '=', False)]}"
/>
</xpath>
<field name="to_check" position="before">
<field
name="supplierinfo_ok"
attrs="{'invisible': [('move_type', 'not in', ['in_invoice', 'in_refund'])]}"
/>
</field>
</field>
</record>
</odoo>