From 140554c9f8311892885a7658f13dc28d7deaa105 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 10 Apr 2013 15:53:08 +0200 Subject: [PATCH] [REVERT] account.invoice: remove "commercial entity" domain on partner_id, to keep it consistent everywhere Being able to choose a contact to invoice is very important because the invoice must go to the right person. When the invoice creation is automated by e.g. a Sales Order any partner can be used (even though the system will preselect the `invoicing` partner of the company if one exists). We have to keep that freedom when manually creating invoices. bzr revid: odo@openerp.com-20130410135308-pd54c7ml8t3pcefl --- addons/account/account_invoice_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 59c78c98e54..046350f302e 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -166,7 +166,7 @@ + domain="[('supplier', '=', True)]"/> @@ -321,7 +321,7 @@ on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" groups="base.group_user" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' - domain="[('customer', '=', True),'|',('parent_id','=',False),('is_company','=',True)]"/> + domain="[('customer', '=', True)]"/>