From e4f04efdd6ffb3e599bde28bd87b6ebc8f963400 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 8 Apr 2013 02:01:24 +0200 Subject: [PATCH] [FIX] account.invoice: only allow selecting partners that are `commercial entities` Following-up to the discussion on bug 1160365, this will help users make the right choice when manualling creating invoices. lp bug: https://launchpad.net/bugs/1160365 fixed bzr revid: odo@openerp.com-20130408000124-wcmjco9561hc9fbl --- addons/account/account_invoice_view.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 1fbdbf26453..59c78c98e54 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -166,7 +166,7 @@ + domain="[('supplier', '=', True),'|',('parent_id','=',False),('is_company','=',True)]"/> @@ -320,7 +320,8 @@ + options='{"always_reload": True}' + domain="[('customer', '=', True),'|',('parent_id','=',False),('is_company','=',True)]"/>