Add level argument to ModelView._view_look_dom_arch

issue8293
This commit is contained in:
Cédric Krier
2019-08-07 17:10:58 +02:00
parent d775e6cd66
commit 962ab28817
+2 -2
View File
@@ -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)