Tuesday, November 19, 2024
2 changes · saas-17.4
Enhancements to existing features
Adding products to the point-of-sale cart is now faster when many loyalty cards and order lines are involved. This improves cashier responsiveness and helps avoid slowdowns during busy sales periods.
Original PR description
Before this commit, adding products to the cart would become slow when there were several loyalty.card records and several pos.order.line records. opw-4317125 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Subscription invoice runs now avoid overlapping updates with payment processing, reducing errors caused by concurrent activity. This improves reliability for automated recurring billing, especially on busier systems.
Original PR description
Before this commit, amount_to_invoice was computed in the cron when the invoice was created as it depends on qty_invoiced. Unfortunately, the compute would be triggered and the ORM would try to write on the sale.order record at the same time than the cron would continue his job. it would end up with concurrent updates. This commit ensure that the compute method is inhibited during the cron and is triggered at the end of it. task 4216148