From 73cbb1bb03a440ee73075ad105cef8aaf300f7aa 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 --- inventory.py | 2 +- move.py | 2 +- shipment.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inventory.py b/inventory.py index cd4640f67d..dc55d37a01 100644 --- a/inventory.py +++ b/inventory.py @@ -129,7 +129,7 @@ class Inventory(Workflow, ModelSQL, ModelView): @classmethod def view_attributes(cls): - return [ + return super().view_attributes() + [ ('/tree', 'visual', If(Eval('state') == 'cancelled', 'muted', '')), ] diff --git a/move.py b/move.py index 527b5b7a13..049bc6998e 100644 --- a/move.py +++ b/move.py @@ -600,7 +600,7 @@ class Move(Workflow, ModelSQL, ModelView): @classmethod def view_attributes(cls): - return [ + return super().view_attributes() + [ ('/tree', 'visual', If(Eval('state') == 'cancelled', 'muted', '')), ] diff --git a/shipment.py b/shipment.py index 7cf80833de..329b37f569 100644 --- a/shipment.py +++ b/shipment.py @@ -24,7 +24,7 @@ class ShipmentMixin: @classmethod def view_attributes(cls): - return [ + return super().view_attributes() + [ ('/tree', 'visual', If(Eval('state') == 'cancelled', 'muted', '')), ]