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)