diff options
| author | qdp-odoo <qdp@odoo.com> | 2016-01-18 15:08:50 +0100 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2016-01-18 15:12:06 +0100 |
| commit | 5393638610c2e64be6423b48dc0e5d95e41dfeac (patch) | |
| tree | 580fe29cc7081f2666de06d684877ad9651965e6 /addons/web_editor/static/src/js | |
| parent | fc8a4b5edec1c0cc4f7efa9a8d9fd9a7ed861d12 (diff) | |
[FIX] account: when changing the number of digits for the account on the company settings, change all accounts. Was PR #10334
Previously we only changed the accounts of type liquidity and that had the prefix/suffix defined on the company settings.
We added to that the other accounts with the following heuristic:
if #digits > len(account.code):
add 0 after account.code,
if #digits < len(account.code):
remove 0 from end of account.code (if possible).
Behaviour for the accounts of type liquidity that start with prefix/suffix defined on the company settings does not change,
except for a bug correction that did not remove 0 when we set a smaller number of digits.
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions
