Wednesday, June 5, 2024
3 changes · saas-17.1
Resolved issues and error corrections
Point of Sale loyalty rewards now load the product information needed to evaluate reward rules correctly. This prevents promotions from failing when they depend on product fields that were not previously available in the PoS session.
Original PR description
Prior to this commit, if a reward product domain contained a field that was not loaded into the Point of Sale (PoS), the promotion would not function correctly. This commit resolves this issue by adding the missing fields, ensuring that the promotion operates as expected. opw-3896038 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Gift card discounts in Point of Sale are now applied at their correct face value instead of being increased by taxes. This prevents customers from receiving more discount than intended and keeps checkout totals accurate.
Original PR description
Problem: There is taxes added to the gift card discount Steps to reproduce: - Install "Point of sale" app - Go to Settings and activate gift cards - Create a gift card (for ex 100€) - Copy the code - Open PoS > Add a product (more than the price of the gift card to understand better) > add the gift card - The card value is not 100€ but more because it includes taxes Solution: Set an empty Array as tax will allow this.tax_ids to be evaluated as true in a if statement and will define an empty Array for the tax of the gift card https://github.com/odoo/odoo/blob/7df8fc435c6ea199292f47954202d4f3c93b2629/addons/point_of_sale/static/src/app/store/models.js#L745-L749 opw-3862427 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Mass production now checks whether generated serial numbers already exist before creating them. This helps avoid duplicate product tracking records and reduces inventory traceability errors.
Original PR description
When the user performs a mass produce, the generated serial numbers will only be created if they do not already exist in the database