Remove safe eval

This commit is contained in:
resteve 2015-08-19 00:14:12 +02:00
parent 81b34bbd2a
commit ad3d35d73c
2 changed files with 12 additions and 2 deletions

View file

@ -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'

View file

@ -5,10 +5,10 @@ copyright notices and license terms. -->
<data>
<xpath expr="/form/field[@name=&quot;ine_code&quot;]"
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>