Hide sendcloud separator when it is not the shipping service
This commit is contained in:
1 parent
22ad1bda50
commit
f40c3b16a0
1 file changed
+8
@@ -262,3 +262,11 @@ class Carrier(metaclass=PoolMeta):
|
||||
@classmethod
|
||||
def default_sendcloud_format(cls):
|
||||
return 'label'
|
||||
|
||||
@classmethod
|
||||
def view_attributes(cls):
|
||||
return super(Carrier, cls).view_attributes() + [
|
||||
("/form/separator[@id='sendcloud']", 'states', {
|
||||
'invisible': Eval('shipping_service') != 'sendcloud',
|
||||
}),
|
||||
]
|
||||
Reference in new issue
Block a user