[FIX] account_analytic_plans: _convert_ref takes only 1 arg

Since the convert of account_invoice to the new api.
_convert_ref is defined as a staticmethod in account_invoice.py
This commit is contained in:
Denis Ledoux 2014-07-31 14:28:45 +02:00
parent 60d038c350
commit 07f355caee
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ class account_invoice(osv.osv):
if inv.type in ('in_invoice', 'in_refund'):
ref = inv.reference
else:
ref = self._convert_ref(cr, uid, inv.number)
ref = self._convert_ref(inv.number)
obj_move_line = acct_ins_obj.browse(cr, uid, il['analytics_id'], context=context)
ctx = context.copy()
ctx.update({'date': inv.date_invoice})