summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Colson <oco@odoo.com>2018-01-24 11:40:28 +0100
committerOlivier Colson <oco@odoo.com>2018-01-24 11:40:28 +0100
commitffaca543c47adf5d0286ff8e9eeb99b193948679 (patch)
tree20d8e7ec47eaf411c4a336c7709c4c744d589a51
parentfa1f2132e79f2ac2314a8b417d5d35d6571bd41b (diff)
[FIX] account: properly allow switching between CoA when no move has been done
A required field was missing at the creation of the wizard doing this.
-rw-r--r--addons/account/models/res_config_settings.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account/models/res_config_settings.py b/addons/account/models/res_config_settings.py
index 304fc0d54a3..f55acc40d8e 100644
--- a/addons/account/models/res_config_settings.py
+++ b/addons/account/models/res_config_settings.py
@@ -68,6 +68,7 @@ class ResConfigSettings(models.TransientModel):
'company_id': self.company_id.id,
'chart_template_id': self.chart_template_id.id,
'transfer_account_id': self.chart_template_id.transfer_account_id.id,
+ 'code_digits': self.chart_template_id.code_digits,
'sale_tax_rate': 15.0,
'purchase_tax_rate': 15.0,
'complete_tax_set': self.chart_template_id.complete_tax_set,