diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-06-20 10:47:24 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-06-20 10:51:56 +0000 |
| commit | 988018a5baa1a10ee44eaeff3065bd8ce4859877 (patch) | |
| tree | 5d917468e7b8f2636d713453757f339713ec1530 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 53b6ab9f05472de35326bfc79e39219a263d3885 (diff) | |
[FIX] account: fiscal year end dates in wizard
- From Accounting dashboard > Configuration panel > Configure fiscal year
- Set opening date: 01/07/2018
- Set fiscal year end: June 30
- Click Apply button
An error is raised: 'Invalid fiscal year last day'.
This is because the 3 fields are linked by the constraint
`_check_fiscalyear_last_day`. However, non-stored writeable related
fields are evaluated one at a time, meaning that the constraint is
evaluated one value at a time.
We do a fancy workaround to write the 3 values at once on the company,
hence evaluating the constraint for the 3 fields once.
opw-2024927
closes odoo/odoo#34275
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
