diff options
Diffstat (limited to 'addons/account/views/account_invoice_view.xml')
| -rw-r--r-- | addons/account/views/account_invoice_view.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index 0cd723f1ff9..1c7ea86e3ae 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -283,7 +283,8 @@ <group> <group> <field string="Vendor" name="partner_id" - context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1, 'default_company_type': 'company'}" + widget="res_partner_many2one" + context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1, 'default_is_company': True, 'show_vat': True}" domain="[('supplier', '=', True)]"/> <field name="reference" string="Vendor Reference"/> <field name="vendor_bill_id" attrs="{'invisible': [('state','not in',['draft'])]}" @@ -436,7 +437,8 @@ <group> <group> <field string="Customer" name="partner_id" - context="{'search_default_customer':1, 'show_address': 1, 'default_company_type': 'company'}" + widget="res_partner_many2one" + context="{'search_default_customer':1, 'show_address': 1, 'default_is_company': True, 'show_vat': True}" options='{"always_reload": True, "no_quick_create": True}' domain="[('customer', '=', True)]" required="1"/> <field name="payment_term_id"/> |
