From 0f62b5cf5da431245e2a8de6879bfd8268ad0bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 9 Apr 2021 10:52:03 +0200 Subject: [PATCH] Call super() method of view_attributes issue10151 review349551002 --- purchase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/purchase.py b/purchase.py index 24faeffee9..159db26a05 100644 --- a/purchase.py +++ b/purchase.py @@ -696,7 +696,7 @@ class Purchase( @classmethod def view_attributes(cls): - attributes = [ + attributes = super().view_attributes() + [ ('/form//field[@name="comment"]', 'spell', Eval('party_lang')), ('/tree', 'visual', If(Eval('state') == 'cancelled', 'muted', '')), ('/tree/field[@name="invoice_state"]', 'visual', @@ -1731,7 +1731,7 @@ class Line(sequence_ordered(), ModelSQL, ModelView): @classmethod def view_attributes(cls): - return [ + return super().view_attributes() + [ ('/form//field[@name="note"]|/form//field[@name="description"]', 'spell', Eval('_parent_purchase', {}).get('party_lang')), ('//label[@id="delivery_date"]', 'states', {