[FIX] account_analytic_plans: convert_ref method has been removed.
[odoo/odoo.git] / addons / account_analytic_plans / account_analytic_plans.py
index 02fc371..4bd3822 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(inv.number)
+                    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})