2
0

[FIX] account_asset_management: Invisible conditions must be independent from extra method_time values

If not, added methods won't hide these fields.
This commit is contained in:
Pedro M. Baeza 2019-08-12 13:12:42 +02:00 committed by Rodrigo
parent 68509d7386
commit 66f3c3198a
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
{
'name': 'Assets Management',
'version': '12.0.1.0.1',
'version': '12.0.1.1.0',
'license': 'AGPL-3',
'depends': [
'account',

View File

@ -70,7 +70,7 @@
<separator string="Depreciation Dates" colspan="2"/>
<field name="method_time"/>
<field name="method_number"
attrs="{'invisible': [('method_time', '=', 'end')], 'required': [('method_time', 'in', ['number', 'year'])]}"/>
attrs="{'invisible': [('method_time', 'not in', ['number', 'year'])], 'required': [('method_time', 'in', ['number', 'year'])]}"/>
<field name="method_period"/>
<field name="method_end"
attrs="{'required': [('method_time', '=', 'end')], 'invisible': [('method_time', 'in', ['number', 'year'])]}"/>

View File

@ -27,7 +27,7 @@
<group string="Depreciation Dates">
<field name="method_time"/>
<field name="method_number"
attrs="{'invisible': [('method_time', '=', 'end')], 'required': [('method_time', 'in', ['number', 'year'])]}"/>
attrs="{'invisible': [('method_time', 'not in', ['number', 'year'])], 'required': [('method_time', 'in', ['number', 'year'])]}"/>
<field name="method_period"/>
</group>
<group string="Depreciation Method">