diff --git a/invoice.py b/invoice.py index 4381ff19fa..ed48bdd264 100644 --- a/invoice.py +++ b/invoice.py @@ -13,11 +13,11 @@ class InvoiceLine(OSV): 'invisible': "type != 'line'", }) - def _view_look_dom_arch(self, cursor, user, tree, context=None): + def _view_look_dom_arch(self, cursor, user, tree, type, context=None): analytic_account_obj = self.pool.get('analytic_account.account') analytic_account_obj.convert_view(cursor, user, tree, context=context) arch, fields = super(InvoiceLine, self)._view_look_dom_arch(cursor, - user, tree, context=context) + user, tree, type, context=context) return arch, fields def fields_get(self, cursor, user, fields_names=None, context=None):