[FIX] account_analytic_plans: _convert_ref takes only 1 arg
authorDenis Ledoux <dle@odoo.com>
Thu, 31 Jul 2014 12:28:45 +0000 (14:28 +0200)
committerDenis Ledoux <dle@odoo.com>
Thu, 31 Jul 2014 12:28:45 +0000 (14:28 +0200)
Since the convert of account_invoice to the new api.
_convert_ref is defined as a staticmethod in account_invoice.py

addons/account_analytic_plans/account_analytic_plans.py

index 5106323..8121f78 100644 (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})