Daily updates from Odoo
Thursday, February 29, 2024
5 changes
2 changes
Enhancements to existing features
This update enhances how Odoo generates PDF reports by creating attachments more efficiently. Previously, attachment values needed to be manually overridden for some reports. This change introduces a new process to prepare these attachment values during PDF generation, ensuring consistent and accurate attachment creation without altering the core report functionality.
Original PR description
Description of the issue/feature this PR addresses: Previously, an `ir_actions_report` refactor landed on: - [ ] https://github.com/odoo/odoo/pull/85150 It totally makes sense to create `ir.attachment` from the streams if needed during PDF generation. For some of the projects we still need to override attachment values. This PR provides a hook to prepare attachment values needed for attachments creation during the pdf report generation. Nothing changes in the sense of business logic. Ping @smetl @xmo-odoo --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#153086 Forward-Port-Of: odoo/odoo#138159
This update makes it easier for developers to customize how clicks are handled within the Odoo dropdown menu. Previously, changes required extensive modifications, but now a simpler approach allows for quicker and more efficient updates. This improves the overall flexibility and maintainability of the Odoo web interface.
Original PR description
With this commit, overriding the `onWindowClick` function from `dropdown.js` becomes much simpler. Previously, it necessitated overriding the entire function, but now it can be done with minimal effort by just overriding this specific part. task-3717014 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#155326 Forward-Port-Of: odoo/odoo#154315
1 change
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)2 changes
Enhancements to existing features
This update adds missing French translations for tax rounding terms in the French localization reports module. The translation files have been reorganized to prevent translations from being marked as obsolete during future updates, making the system more maintainable and ensuring consistent French terminology for tax reporting features.
Original PR description
### [I18N] l10n_fr_reports: add tax rounding terms A few of translations relating to 03ce6ce were not included with the original commit. This commit adds the terms to the l10n_fr_reports.pot file, and the translations to the fr.po file. Thank you Antoine (andu) for the Frenchification of the terms. task-id: 3717388 ### [I18N] l10n_fr_reports: restructure po/pot files Add the missing terms to the pot file. When the terms are missing from the pot file, but present in the po file, they get marked as "obsolete". This happens during the merge function that is called within tools/translate.py. In order to avoid this, the pot and po files have been re-generated and restructured in order to make future additions easier to merge. Forward-Port-Of: odoo/enterprise#56590
This update improves how the system creates attachments when generating PDF reports. A new technical hook has been added that allows customization of attachment details during report generation, making the system more flexible for projects with specific attachment requirements. No changes to how reports work from a user perspective.
Original PR description
Description of the issue/feature this PR addresses: Previously, an `ir_actions_report` refactor landed on: - [ ] https://github.com/odoo/odoo/pull/85150 It totally makes sense to create `ir.attachment` from the streams if needed during PDF generation. For some of the projects we still need to override attachment values. This PR provides a hook to prepare attachment values needed for attachments creation during the pdf report generation. Nothing changes in the sense of business logic. Ping @smetl @xmo-odoo --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#153086 Forward-Port-Of: odoo/odoo#138159