odoo/odoo#202682
Created by fw-bot
Merged
at 15a0c7ddcb01fb597f72bf02f05aaa5a66be5313
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-18.2-saas-18.1-pos-opw-4609371-pebr-424201-fw
- head
- 4fcd47fa7c67a2fdb80da535325ea070a7f73ad8
- merged
- 3 months ago by Pedram Bi Ria (pebr)
odoo/odoo | |
---|---|
saas-18.1 | #202574 |
saas-18.2 | #202682 |
saas-18.3 | |
master | #204437 |
[FW][FIX] point_of_sale: use correct pricelist rule
When multiple pricelist rules with different minimum quantities existed (global or category-based), the incorrect rule was being selected. This was caused by an unnecessary search on already filtered and priority-sorted pricelist rules.
Now we simply select the first matching rule, respecting the priority.
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #202574