Skip to content

Commit

Permalink
[FIX] account_accountant: Make transfer_account not required without …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
smetl committed Dec 5, 2018
1 parent 69d342f commit 379fc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account_accountant/views/res_config_view.xml
Expand Up @@ -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>
Expand Down

0 comments on commit 379fc6b

Please sign in to comment.