From 819e3005c27d15ec584d8c1edd7b896a4f80d12e Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 21 Aug 2014 21:22:12 +0200 Subject: [PATCH] [FIX] account: _get_analytic_lines() must work in @mutli beside using only self[0] (partially revert previous commit) --- addons/account/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index ade4e12d426..3c73bc8a9f8 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -649,7 +649,7 @@ class account_invoice(models.Model): def _convert_ref(ref): return (ref or '').replace('/','') - @api.one + @api.multi def _get_analytic_lines(self): """ Return a list of dict for creating analytic lines for self[0] """ company_currency = self.company_id.currency_id