[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:
parent
68509d7386
commit
66f3c3198a
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Assets Management',
|
'name': 'Assets Management',
|
||||||
'version': '12.0.1.0.1',
|
'version': '12.0.1.1.0',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'depends': [
|
'depends': [
|
||||||
'account',
|
'account',
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
<separator string="Depreciation Dates" colspan="2"/>
|
<separator string="Depreciation Dates" colspan="2"/>
|
||||||
<field name="method_time"/>
|
<field name="method_time"/>
|
||||||
<field name="method_number"
|
<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_period"/>
|
||||||
<field name="method_end"
|
<field name="method_end"
|
||||||
attrs="{'required': [('method_time', '=', 'end')], 'invisible': [('method_time', 'in', ['number', 'year'])]}"/>
|
attrs="{'required': [('method_time', '=', 'end')], 'invisible': [('method_time', 'in', ['number', 'year'])]}"/>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<group string="Depreciation Dates">
|
<group string="Depreciation Dates">
|
||||||
<field name="method_time"/>
|
<field name="method_time"/>
|
||||||
<field name="method_number"
|
<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_period"/>
|
||||||
</group>
|
</group>
|
||||||
<group string="Depreciation Method">
|
<group string="Depreciation Method">
|
||||||
|
Loading…
Reference in New Issue
Block a user