From dc3f1e22117aafbc1342a2ea1a8902072edaeb4e Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 14 Apr 2016 13:58:30 +0200 Subject: [PATCH] [FIX] account_analytic_analysis: comment field in account.invoice When creating an invoice from a contract with button "create invoices", the description linked to the contract has to written in the comment field of the invoice. opw:671660 --- addons/account_analytic_analysis/account_analytic_analysis.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_analytic_analysis/account_analytic_analysis.py b/addons/account_analytic_analysis/account_analytic_analysis.py index 8b7591df00d..fcd716c1c96 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis.py +++ b/addons/account_analytic_analysis/account_analytic_analysis.py @@ -705,6 +705,7 @@ class account_analytic_account(osv.osv): 'payment_term': partner_payment_term, 'company_id': contract.company_id.id or False, 'user_id': contract.manager_id.id or uid, + 'comment': contract.description, } return invoice