Daily updates from Odoo
Navigate
Branch
Tuesday, February 22, 2022
22 changes
New functionality added to Odoo
Adds new India-specific electronic document and eWayBill capabilities so businesses can submit eWayBills to the Indian government through API integration. This helps Indian companies meet compliance requirements more directly from Odoo and reduces manual government portal work.
Original PR description
New eWayBill module for India to submit an ewaybill to Government using API. TaskID - 2729644
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
Helpdesk has been adjusted to stay compatible with a related change in how customer rating data is handled. This helps keep helpdesk feedback and satisfaction information working consistently after the underlying data move.
Original PR description
See community PR for more details.
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
Odoo now handles posting the same message across multiple records more efficiently in several business apps. This reduces unnecessary processing, especially when there are no recipients to notify, while keeping message behavior consistent for users.
Original PR description
+ mail override cleanup/improvements COM PR: https://github.com/odoo/odoo/pull/61237
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.
The CRM Pipeline no longer shows dashboard and cohort views by default, reducing clutter and making the main pipeline easier to use. These more advanced views remain better suited for the Reporting area, helping users focus on day-to-day sales work.
Original PR description
We remove the dashboard and cohort views from the default Pipeline action. The purpose is to avoid to have too many complex buttons on this Pipeline. It's better suited to the Reporting menu. task-2760892
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
Resolved issues and error corrections
A typo introduced during a previous update prevented the file widget from appearing in SEPA payroll batches. This fix restores the expected display so payroll users can access the related file information again.
Original PR description
The commit aa95e275eec1 introduced a typo in the method name.
Code cleanup and technical improvements
This refactor improves the Sign backend so signing requests are more consistent, easier to maintain, and better tested. It also clarifies copied recipients, prevents canceled requests from being resent, and automatically sends completed documents to new copy recipients after signing.
Original PR description
From 14.3 to 15.0 a lot of features have been added and the code need to be cleaned. Alongside this cleaning are some behaviors to fix. This PR tries to improve and reorganize the code * more flexible to be extended in the future * less hack for other models * easier to be tested * less code * more general method name * more stable Unlike the previous implementation, in the scope of Sign, you can call any public method(except `write` `create` and `unlink`) whenever you like from other model or RPC. Illegal state/input will trigger an error. The backend test is added for sign.template and sign.request. Almost every use case is tested See the details in each commit task id: 2659342
Miscellaneous changes
The method `_search_planning_overlap` doesn't take the assigned users of the overlapping tasks into account, and returns tasks that are not overlapping. This commit fixes the SQL query in this method to correctly consider the assigned users for the overlapping tasks. Task-2765539 Forward-Port-Of: odoo/enterprise#24632
Original PR description
The method `_search_planning_overlap` doesn't take the assigned users of the overlapping tasks into account, and returns tasks that are not overlapping. This commit fixes the SQL query in this method to correctly consider the assigned users for the overlapping tasks. Task-2765539 Forward-Port-Of: odoo/enterprise#24632
The supporting documents were only showing in Documents when they were uploaded after the leave was already in the database. This is due to the ID not known at the time the document is uploaded to the server. TaskID: 2741974 Forward-Port-Of: odoo/enterprise#24481
Original PR description
The supporting documents were only showing in Documents when they were uploaded after the leave was already in the database. This is due to the ID not known at the time the document is uploaded to the server. TaskID: 2741974 Forward-Port-Of: odoo/enterprise#24481
The Mexico Delivery Guide modifies the standard delivery slip to include the weight of each line. When Serial Numbers are printed on the Delivery slip, the weight of the related stock.move is a sum of all units while they are separated on each line - resulting in an increased weight. This commit adds a new computed field on stock move line, and uses this field on the report instead Forward-Port-Of: odoo/enterprise#24535 Forward-Port-Of: odoo/enterprise#24508
Original PR description
The Mexico Delivery Guide modifies the standard delivery slip to include the weight of each line. When Serial Numbers are printed on the Delivery slip, the weight of the related stock.move is a sum of all units while they are separated on each line - resulting in an increased weight. This commit adds a new computed field on stock move line, and uses this field on the report instead Forward-Port-Of: odoo/enterprise#24535 Forward-Port-Of: odoo/enterprise#24508
odoo/enterprise#23514 merged the pause & sell wizards into the 'modify' wizard - here we test those features. Task-2753067 Forward-Port-Of: odoo/enterprise#24483
Original PR description
odoo/enterprise#23514 merged the pause & sell wizards into the 'modify' wizard - here we test those features. Task-2753067 Forward-Port-Of: odoo/enterprise#24483
Reproduction: 1. Open a product page in the e-shop 2. Switch on “discussion and rating” 3. Install new language fr_BE 4. The “Average” in the rating section is not translated Reason: the “Average” translation for module portal_rating is overwritten by module web_cohort, so it isn't translated at the front-end Fix: Included a new ir_http.py file in the module web_cohort so its translation is included at the front-end. No changes in the module protal_rating opw-2747846 Forward-
Original PR description
Reproduction: 1. Open a product page in the e-shop 2. Switch on “discussion and rating” 3. Install new language fr_BE 4. The “Average” in the rating section is not translated Reason: the “Average” translation for module portal_rating is overwritten by module web_cohort, so it isn't translated at the front-end Fix: Included a new ir_http.py file in the module web_cohort so its translation is included at the front-end. No changes in the module protal_rating opw-2747846 Forward-Port-Of: odoo/enterprise#24387
When a date isn't set, we shouldn't convert to string, we were validating a string "False" instead of the boolean False. Forward-Port-Of: odoo/enterprise#24590
Original PR description
When a date isn't set, we shouldn't convert to string, we were validating a string "False" instead of the boolean False. Forward-Port-Of: odoo/enterprise#24590
When a date isn't set, we shouldn't convert to string, we were validating a string "False" instead of the boolean False. Forward-Port-Of: odoo/enterprise#24588
Original PR description
When a date isn't set, we shouldn't convert to string, we were validating a string "False" instead of the boolean False. Forward-Port-Of: odoo/enterprise#24588
**Current behavior before PR:** when scheduling a call activity and making the call with VOIP then end the call, the activity is resolved, and there is a note left on the chatter, but currently, it contains HTML. **Desired behavior after PR is merged:** The note will not contain any HTML content. Task-2717666 Forward-Port-Of: odoo/enterprise#24493 Forward-Port-Of: odoo/enterprise#23660
Original PR description
**Current behavior before PR:** when scheduling a call activity and making the call with VOIP then end the call, the activity is resolved, and there is a note left on the chatter, but currently, it contains HTML. **Desired behavior after PR is merged:** The note will not contain any HTML content. Task-2717666 Forward-Port-Of: odoo/enterprise#24493 Forward-Port-Of: odoo/enterprise#23660
How to reproduce the bug ? - Install the timesheet app - Open the timesheet app and view timesheets with the grid view - Create a new filter with task or project as field, equal or not equal as operator and a string as value Bug: When the grid view of the timesheet app is used and you want to create a filter on the task or the project with the operator "equal" or "not equal" and a string as value, there will be an error message. opw-2741766 Signed-off-by: Adrien Minet <admi@o
Original PR description
How to reproduce the bug ? - Install the timesheet app - Open the timesheet app and view timesheets with the grid view - Create a new filter with task or project as field, equal or not equal as operator and a string as value Bug: When the grid view of the timesheet app is used and you want to create a filter on the task or the project with the operator "equal" or "not equal" and a string as value, there will be an error message. opw-2741766 Signed-off-by: Adrien Minet <admi@odoo.com> Forward-Port-Of: odoo/enterprise#24373
For now adding a new field after payment_term_id.note is impossible because of a traceback this is due to the content of note which contains HTML inside a P tag and the payment_term_id.note is inside a P tag too which is forbidden https://stackoverflow.com/questions/4291467/nesting-block-level-elements-inside-the-p-tag-right-or-wrong/4291608 This commit prevents the addition of new blocks in incompatible places. It fallback to the last valid location opw-2739941 Forward-Port-Of: odoo/
Original PR description
For now adding a new field after payment_term_id.note is impossible because of a traceback this is due to the content of note which contains HTML inside a P tag and the payment_term_id.note is inside a P tag too which is forbidden https://stackoverflow.com/questions/4291467/nesting-block-level-elements-inside-the-p-tag-right-or-wrong/4291608 This commit prevents the addition of new blocks in incompatible places. It fallback to the last valid location opw-2739941 Forward-Port-Of: odoo/enterprise#24342