Daily updates from Odoo
Tuesday, February 22, 2022
6 changes · master
Enhancements to existing features
Sales rentals and subscriptions now work more reliably when no pricelist is set. Rental pricing also applies pricelist rules on top of rental-specific prices, helping ensure customer pricing is calculated consistently.
Original PR description
Enterprise counterpart of https://github.com/odoo/odoo/pull/39048
This update improves how many Odoo Enterprise apps create records in groups instead of one at a time. It should improve performance and consistency in workflows that generate many records, while also preparing the platform for future efficiency improvements.
Original PR description
By default, the ORM supports batch creation of records, but when one `create` overrides doesn't support the creation of records in batch, records creation on the given model are done 1 by 1, disabling lots of improvements gained thanks to the manipulation of records in batch. To enable such performance improvements (at the ORM level, but also in create overrides sometimes), this PR aims to adapt the majority of existing create overrides in Odoo codebase to support batch record creation. Some of the changes won't really have any impact because the records are always created one by one, but converting them: 1) encourages new create override to support multi record creation (devs are copy/pasting/... a lot) 2) provides the basis for a potential future API change to enforce batch creation support. Enterprise Counterpart of https://github.com/odoo/odoo/pull/54601
Marketing, referral, and social posting flows now generate unique tracking source names automatically. This prevents duplicate-name conflicts when campaigns or activities are copied, improving reliability of reporting and campaign setup.
Original PR description
Purpose ======= Use the new UTM source method to generate the name. Now that the UTM source name must be unique, the name of the marketing activities must also be unique. When we duplicate them, their names become "ShouldDuplicate [xxxxxxx]", because a source already exist with the same name. Adapt the test with this new change. Task-2245823
Sales and stock reporting queries were cleaned up and made more consistent with access and company rules. This helps ensure report averages and aggregated values match what users are allowed to see, improving trust in business dashboards.
Original PR description
Cleaning and fixes on SQL reports Enterprise Counterpart of odoo/odoo#51623
HR plans can now include signature requests as part of their planned employee actions, making onboarding, contract changes, or offboarding workflows easier to complete. This reduces manual follow-up by letting teams trigger required document signatures directly from the HR plan process.
HR teams can now email departing or former employees a temporary link to access their documents, including payslips, without requiring system login access. This simplifies offboarding and helps employees retrieve important records after departure.
Original PR description
Add a way to easily send a departing/departed employee his documents without login access. When archiving an employee an option will be available opening a form to send en email containing a link to a document share (valid 2 weeks) for all of the employees document (payslips). Alternatively an action has also been added to the employee form. Task ID: 2476837 Community: odoo/odoo#68682