diff options
| author | jvm-odoo <jvm@odoo.com> | 2020-03-18 08:30:22 +0000 |
|---|---|---|
| committer | jvm-odoo <jvm@odoo.com> | 2020-03-23 14:23:31 +0000 |
| commit | 2573d681dd64fde0f36d3ca2cda32ab21e0a62aa (patch) | |
| tree | 8bac9db666eb9f8479ef454c71f2a83b88fa6faa /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 3754cdf5175cebc91b1f5d4f200ee92920fe0801 (diff) | |
[FIX] calendar: fix virtual ids present when recomputing models
Issue
- Install Calendar, HR Recruitment & Studio
- Go into Calendar
- Create a recurring event
- Edit it with Studio
- Add a related field
- Select Applicant > Assigned
Traceback
Cause
Applicant > Assigned is a stored field.
Adding a stored field seems to triggers
something that recomputes all models
odoo/odoo:odoo/modules/registry.py@12.0#L307
Then it calls the _write method of models.py
which uses self.ids (which contains virtuals ids)
for a SQL query.
odoo/odoo:odoo/models.py@12.0#L3428
Solution
Avoid all the virtuals ids to be retrieved
when we have "update_custom_fields" in
the context.
OPW-2214170
closes odoo/odoo#48208
X-original-commit: 112f976eb193020c093068fd30a004be3f5e9254
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
