mirror of
https://github.com/NaN-tic/trytond-account_payment_es_csb_32.git
synced 2023-12-14 06:23:05 +01:00
Remove safe eval
This commit is contained in:
parent
81b34bbd2a
commit
ad3d35d73c
2 changed files with 12 additions and 2 deletions
10
payment.py
10
payment.py
|
@ -37,6 +37,16 @@ class Journal:
|
|||
('csb32', 'CSB 32'),
|
||||
])
|
||||
|
||||
@classmethod
|
||||
def view_attributes(cls):
|
||||
attributes = super(Journal, cls).view_attributes()
|
||||
attributes.append(
|
||||
('/form/group[@id="csb_32"]', 'states', {
|
||||
'invisible': Eval('process_method') != 'csb32',
|
||||
})
|
||||
)
|
||||
return attributes
|
||||
|
||||
|
||||
class Group:
|
||||
__name__ = 'account.payment.group'
|
||||
|
|
|
@ -5,10 +5,10 @@ copyright notices and license terms. -->
|
|||
<data>
|
||||
<xpath expr="/form/field[@name="ine_code"]"
|
||||
position="after">
|
||||
<group col="2" colspan="4" id="csb_32" states="{'invisible': Eval('process_method') != 'csb32'}">
|
||||
<group col="2" colspan="4" id="csb_32">
|
||||
<separator string="CSB 32 Options" colspan="2" id="csb_32"/>
|
||||
<label name="csb_32_grantor"/>
|
||||
<field name="csb_32_grantor"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</data>
|
||||
</data>
|
||||
|
|
Loading…
Reference in a new issue