Call super() method of view_attributes
issue10151 review349551002
This commit is contained in:
+1
-1
@@ -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', '')),
|
||||
]
|
||||
|
||||
|
||||
@@ -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', '')),
|
||||
]
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ class ShipmentMixin:
|
||||
|
||||
@classmethod
|
||||
def view_attributes(cls):
|
||||
return [
|
||||
return super().view_attributes() + [
|
||||
('/tree', 'visual', If(Eval('state') == 'cancelled', 'muted', '')),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user