changeset d04a7d920667 in modules/purchase:default details: https://hg.tryton.org/modules/purchase?cmd=changeset&node=d04a7d920667 description: Call super() method of view_attributes
issue10151 review349551002 diffstat: purchase.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r 547822f452ce -r d04a7d920667 purchase.py --- a/purchase.py Mon Apr 05 16:24:13 2021 +0200 +++ b/purchase.py Fri Apr 09 10:52:03 2021 +0200 @@ -696,7 +696,7 @@ @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 @@ @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', {