From 962ab28817e1c94a451fdfce0f9db81fa1648bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Aug 2019 17:10:58 +0200 Subject: [PATCH] Add level argument to ModelView._view_look_dom_arch issue8293 --- invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index 92e3d600bc..bdaab9eb84 100644 --- a/invoice.py +++ b/invoice.py @@ -36,10 +36,10 @@ class InvoiceLine(metaclass=PoolMeta): __name__ = 'account.invoice.line' @classmethod - def _view_look_dom_arch(cls, tree, type, field_children=None): + def _view_look_dom_arch(cls, tree, type, field_children=None, level=0): if type == 'form' and Transaction().context.get('standalone'): tree_root = tree.getroottree().getroot() if tree_root.get('cursor') == 'product': tree_root.set('cursor', 'party') return super(InvoiceLine, cls)._view_look_dom_arch(tree, type, - field_children=field_children) + field_children=field_children, level=level)