Wednesday, April 9, 2025
3 changes · 18.0
Enhancements to existing features
Portal payment links now show more accurate reasons when a payment cannot be made, instead of always saying the invoice is already paid. Users are also prevented from generating payment links when online payments are disabled, with a warning to explain why.
Original PR description
- Changed payment link error to list the causes instead of displaying 'This invoice is already paid' in all cases. - Generating a payment link is now not possible while online payments are disabled in settings, a warning is displayed instead. task-4609554 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
This fix prevents outdated call connection attempts from continuing after a participant connection has already been removed. It helps avoid duplicate or invalid audio/video streams, making Discuss calls more stable when switching connection methods.
Original PR description
Before this commit, and since the addition of the SFU fallback feature, it was possible that a peer was removed while being created or connected, this could lead to a race condition where we no longer need the peer but some negotiations are still being made. This commit fixes this issue by stopping the negotiation if the peer no longer exist when the promises are resolved. Another race condition could lead to receiving a track from the failed peer-to-peer connection (as tracks are generated when transceiver are created, before we know if the connection is stable), while we already have a track from the SFU. This commit fixes this issue by: 1) Awaiting that the p2p connection is ready before emitting the tracks, which ensures that the API only provides valid tracks (when usable). 2) Adding a concept of sequence to prevent race conditions between connections and tracks.
This fix changes a point of sale upgrade step so it processes records in smaller batches instead of loading millions at once. This helps large businesses complete upgrades reliably and avoids memory-related crashes during database migration.
Original PR description
Enhance query efficiency for large accrued data by implementing batch processing Previously, fetchall() loaded all IDs at once, causing memory errors. ```sql select count(*) from pos_order; count…
Enhance query efficiency for large accrued data by implementing batch processing
Previously, fetchall() loaded all IDs at once, causing memory errors.
```sql
select count(*) from pos_order;
count
----------
16736714
(1 row)
select count(*) from pos_order_line;
count
----------
24988345
(1 row)
select count(*) from pos_payment;
count
----------
16430502
(1 row)
```
- Traceback
```python
Traceback (most recent call last):
File "/home/odoo/src/odoo/18.0/odoo/service/server.py", line 1321, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "<decorator-gen-13>", line 2, in new
File "/home/odoo/src/odoo/18.0/odoo/tools/func.py", line 97, in locked
return func(inst, *args, **kwargs)
File "/home/odoo/src/odoo/18.0/odoo/modules/registry.py", line 127, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/odoo/src/odoo/18.0/odoo/modules/loading.py", line 484, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/home/odoo/src/odoo/18.0/odoo/modules/loading.py", line 372, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/odoo/src/odoo/18.0/odoo/modules/loading.py", line 240, in load_module_graph
migrations.migrate_module(package, 'post')
File "/home/odoo/src/odoo/18.0/odoo/modules/migration.py", line 254, in migrate_module
mod.migrate(self.cr, installed_version)
File "/home/odoo/src/odoo/18.0/addons/point_of_sale/upgrades/1.0.2/post-deduplicate-uuids.py", line 38, in migrate
deduplicate_uuids("pos_order_line")
File "/home/odoo/src/odoo/18.0/addons/point_of_sale/upgrades/1.0.2/post-deduplicate-uuids.py", line 30, in deduplicate_uuids
all_ids = [r[0] for r in cr.fetchall()]
MemoryError
```
opw - 4544050
upg - 2459515
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