[FIX] account_accountant: Make transfer_account not required without chart template

required: [('chart_template_id','!=',False)] doesn't work because you need to fill the chart_template_id
to install a chart of accounts for your company. Then, the transfer_account becomes required before its installation
and then, you are not able to install a chart of accounts for your company.
This commit is contained in:
Laurent Smet
2018-12-05 11:13:19 +01:00
parent 69d342f54c
commit 379fc6b125
@@ -71,7 +71,7 @@
<div class="content-group">
<div class="row mt16">
<label for="transfer_account_id" class="col-md-3 o_light_label"/>
<field name="transfer_account_id" attrs="{'required': [('chart_template_id','!=',False)]}"/>
<field name="transfer_account_id" attrs="{'required': [('has_chart_of_accounts','!=',False)]}"/>
</div>
</div>
</div>