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.
  • Loading branch information...
Laurent Smet
Laurent Smet committed Dec 5, 2018
1 parent 69d342f commit 379fc6b125b08ce2ce6473d01887100e1f8e0ed0
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/account_accountant/views/res_config_view.xml
@@ -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)]}"/>

0 comments on commit 379fc6b

Please sign in to comment.