From a75bb06cc366a9c8dd7cdb88ec3c1a728f2fb86b Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 24 May 2017 16:38:28 +0200 Subject: [PATCH] [FIX] account: default partner of analytic account - Create an invoice - Add a product - Create an analytic account directly from the invoice line - Validate the invoice The partner is not filled in on the analytic entry. This is because the partner of the line is a related of the partner of the analytic account. By default, the partner is not filled in. opw-743628 --- addons/account/views/account_invoice_view.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index f14f80f4494..2bcddda579c 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -267,7 +267,8 @@ + domain="[('company_id', '=', parent.company_id)]" + context="{'default_partner_id': parent.partner_id}"/> @@ -403,7 +404,8 @@ + domain="[('company_id', '=', parent.company_id)]" + context="{'default_partner_id': parent.partner_id}"/>