changeset 44785fda8d77 in modules/account_invoice_line_standalone:default
details:
https://hg.tryton.org/modules/account_invoice_line_standalone?cmd=changeset;node=44785fda8d77
description:
Make ModelView.parse_view public
issue10073
review333851028
diffstat:
invoice.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r f22d042f8d24 -r 44785fda8d77 invoice.py
--- a/invoice.py Tue Feb 09 00:32:17 2021 +0100
+++ b/invoice.py Sun Feb 14 15:56:18 2021 +0100
@@ -27,10 +27,9 @@
__name__ = 'account.invoice.line'
@classmethod
- def _view_look_dom_arch(cls, tree, type, field_children=None, level=0):
+ def parse_view(cls, tree, type, *args, **kwargs):
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, level=level)
+ return super().parse_view(tree, type, *args, **kwargs)