[FIX] account: _get_analytic_lines() must work in @mutli beside using only self[0]

(partially revert previous commit)
This commit is contained in:
Christophe Simonis 2014-08-21 21:22:12 +02:00
parent 2649d4ba28
commit 819e3005c2
1 changed files with 1 additions and 1 deletions

View File

@ -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