Thursday, February 29, 2024
1 change · master
Enhancements to existing features
This update simplifies how activity information is handled in form chatter areas across many Odoo apps. It removes unnecessary activity identifiers from screen definitions and prepares view data to carry extra model information when needed, helping keep the interface infrastructure cleaner and easier to maintain.
Original PR description
**Before this PR:**
- Each model in models from `get_views` return data, only contains a dict of fields. The structure of models is like:
```py
models: {
resModel1: {contains resModel1 fields},
resModel2: {contains resModel2 fields},
...
}
```
**After this PR:**
- Adding `fields` in form of `key: value` to each model in `get_views`, makes it possible to add extra data about model beside `fields` if it's needed.
```py
models: {
resModel1: {
fields: {contains resModel1 fields},
extra_data: ...
},
resModel2: {
fields: {contains resModel2 fields}
extra_data: ...
},
...
}
```
- All the `activity_ids` (descendants of `oe_chatter`) are removed from the view arch
[Related Odoo PR](https://github.com/odoo/odoo/pull/154710)