Skip to content
Snippets Groups Projects
Commit 379fc6b1 authored by Laurent Smet's avatar Laurent Smet
Browse files

[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.
parent 69d342f5
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment