From 0c76ff484609a0f3b386b5d223f409ab55f0034d Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Thu, 26 Jan 2017 18:45:14 +0100 Subject: [PATCH] [FIX] account: modal account.invoice.line form traceback In some instances we could get a traceback in the form view of an account.invoice.line object. This is because the `parent` field can be undefined depending of the way the form view was opened. For example there can be a account.invoice.line list in a sale.order.line form and this lead to a product_id with a traceback capable context. --- addons/account/views/account_invoice_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index 4d27ae6d465..27a854248df 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -61,7 +61,7 @@ + context="parent and {'partner_id': parent.partner_id}"/>