From e7db471ab9e6f1927dc89a8fbc0f1f8ab58d5db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 26 Jun 2008 19:03:27 +0200 Subject: [PATCH] Fix new params to _view_look_dom_arch --- invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):