mirror of
https://github.com/NaN-tic/trytond-account_payment_es_csb_32.git
synced 2023-12-14 06:23:05 +01:00
Refactore code about view attributes
This commit is contained in:
parent
ad3d35d73c
commit
2dec38afb9
|
@ -39,13 +39,10 @@ class Journal:
|
|||
|
||||
@classmethod
|
||||
def view_attributes(cls):
|
||||
attributes = super(Journal, cls).view_attributes()
|
||||
attributes.append(
|
||||
('/form/group[@id="csb_32"]', 'states', {
|
||||
return super(Journal, cls).view_attributes() + [
|
||||
('//group[@id="csb_19"]', 'states', {
|
||||
'invisible': Eval('process_method') != 'csb32',
|
||||
})
|
||||
)
|
||||
return attributes
|
||||
})]
|
||||
|
||||
|
||||
class Group:
|
||||
|
|
Loading…
Reference in a new issue