Thursday, November 29, 2018
7 changes · master
Enhancements to existing features
This change improves the efficiency of record filtering by allowing operations to stop once the needed result is found. It can reduce unnecessary processing in common internal workflows, helping the system respond faster without changing user-facing behavior.
Original PR description
Hi guys
This commit is to improve speed in some filtered operations.
- when you need to select only one record, it is better to stop the loop when you have find one. Replace `self.filtered(func)[:1]` by `self.filtered(func, limit=1)`.
- when you use filtered to get a boolean :
```
if self.filtered(func):
return ....
```
you don't need to compute the condition for all records, you can add `limit=1` and `count=True`
what do you think ?
@odony
@alnslang
@Yenthe666
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prPurchase orders will now show the billing status as "Fully Billed" instead of "No Bill to Receive" when invoicing is complete. This makes the status easier for users to understand and better reflects the actual business state of the order.
Original PR description
Task: https://www.odoo.com/web#id=1857963&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.227bf37c690c32e1719a8eb87ceb27ee Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Quality Control Points form has been reorganized so its tabs appear in a more logical order. This makes the screen easier to navigate for users setting up or reviewing quality checks, reducing friction in day-to-day quality management.
Original PR description
Task: https://www.odoo.com/web?#id=1895297&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.ebc07031e83dbc5b5da71f06c14506e1
Resolved issues and error corrections
This corrects an internal import issue that could cause delete instructions in XML data files to fail. The affected use was rare, so the practical impact is limited, but it helps keep system updates and data loading reliable.
Original PR description
_tag_delete was not properly converted when tag handling's calling convention was modified in 4d581e26c2c30a53c41fcdc89d42c79e9ba1ef2f, so `<delete>` tags don't work anymore. There's only one left in master so the impact was limited, though it's a bit strange it didn't blow up runbot.
Code cleanup and technical improvements
Odoo has removed old compatibility code that was only needed while supporting both Python 2 and Python 3. This simplifies the codebase and supports the platform’s move fully onto Python 3, with little direct impact on everyday users.
This update ensures the Tax Amount column appears correctly on printed invoice reports when sections are enabled in Sales settings. It helps users see tax details consistently, avoiding confusion in customer-facing documents.
Original PR description
Issue: https://www.odoo.com/web?#id=1814954&view_type=form&model=project.task Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Original PR description
We can now proceed along our transition path to Python 3 - and get rid of all the shims and helpers that were only needed for dual-compatibility. Corresponding Enterprise PR: https://github.com/odoo/enterprise/pull/3036
This update removes outdated Python 2 compatibility code across several Enterprise apps, keeping the platform aligned with modern Python 3 standards. It also restores email validation support for CRM scoring when the required validation library is available, improving reliability for lead handling.
Original PR description
Complement of https://github.com/odoo/odoo/pull/28519