Tuesday, November 21, 2023
1 change · master
Features or functions removed from Odoo
This update removes older context fields that were previously deprecated and no longer intended for use. It simplifies the underlying evaluation behavior in base and web components, reducing legacy dependencies while keeping supported context values available.
Original PR description
PR [1] deprecated keys `active_id`, `active_ids` and `active_model` from the evalContext. As stated in the PR message, the idea was to completely remove those keys for v18. This is what this commit does.
As of now, the evalContext contains
- a few static keys:
- `context`
- `uid`
- `allowed_company_ids`
- `current_company_id`
- python builtins:
- `today`
- `now`
- `bool`
- ... (complete list available in py_builtin.js)
- [if we are in a record] a key for each field in the view
- [if we are inside an x2many] a `parent` key pointing to the parent record.
[1] https://github.com/odoo/odoo/pull/136665/
Task 3543406
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr