Daily updates from Odoo
Tuesday, June 12, 2018
6 changes · master
Enhancements to existing features
Sales document lines can now include clearer section-style rows with subtotals and page breaks, making quotes and orders easier to read and present. The update also improves line ordering and print layout so users can organize commercial documents more reliably.
Original PR description
Task link: https://www.odoo.com/web#id=53996&action=333&active_id=965&model=project.task&view_type=form&menu_id=4720
Stock quantity lookups are optimized by avoiding unnecessary calculations for unused virtual quantity fields. This should make checking on-hand inventory faster and reduce system overhead, especially in stock-heavy workflows.
Original PR description
- Increase performance when you get qty on hand. - Avoid compute fields unused. Fix https://github.com/odoo/odoo/issues/9793
The stock module now asks the database for only the first matching warehouse instead of retrieving all matches and filtering them later. This reduces unnecessary work and can improve performance in operations that need warehouse information.
Original PR description
- Description of the issue/feature this PR addresses: This PR increase the performance to `get_warehouse` method. Other matter, IMHO this method should be in a `fields.function` with stored like as [commercial_partner_id](https://github.com/odoo/odoo/blob/a5df5e8/openerp/addons/base/res/res_partner.py#L270) Because waste many resources in each invoke. But I added this PR with a small fix. - Current behavior before PR: Return all items from database and filter after by python. - Desired behavior after PR is merged: Return first item from database.
This change adds a cleaner way to prepare information when converting leads into contacts or companies. It helps future CRM customizations handle lead-to-contact conversion more reliably without changing the normal user workflow.
Original PR description
Relaunch https://github.com/odoo/odoo/pull/8899 to master. I think I broke that PR somehow when rebasing.
This update makes it easier for companies to connect Odoo sign-ins to services like Active Directory. It supports simpler login setup, email-style domain suffixes, secure LDAP addresses, and clearer error handling, reducing setup effort and administrative account requirements.
Original PR description
- Traditionally Odoo binds two times: once anonymously or with `ldap_binddn`, and a second time with the user login. Allow for one-step login using new boolean field `ldap_pre_bind`, True by default for compatibility, to be set to False for direct authenticated binds. Avoids the need for creating an administrative account just for the purpose of Odoo LDAP auth. - Add `ldap_bind_suffix` to add a suffix to the supplied login, to support Active Directory-style domains like @company.com - Allow `ldaps://` protocol for secure mode - Improve error handling Those changes make it easier to use the `auth_ldap` module to connect to Active Directory. Further improvements could be made by skipping the LDAP search when the create_user option is disabled. This would turn ldap_filter and ldap_base into optional fields. FYI: previous PR #3941 was made available for branch 7.0
This update improves how section and note rows behave across several Odoo business screens and documents, making lists and forms easier to read and manage. It also fixes an issue that could cause an error when applying coupons to sales orders, improving reliability for sales workflows.
Original PR description
Task link: https://www.odoo.com/web#id=53996&action=333&active_id=965&model=project.task&view_type=form&menu_id=4720