Add level argument to ModelView._view_look_dom_arch
issue8293
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user