Tuesday, April 22, 2025
3 changes · saas-18.1
Resolved issues and error corrections
Point of Sale now refreshes employee access data when a session is reopened, so removed employees no longer appear and permission changes take effect promptly. This helps businesses enforce cashier access and manager rights without sacrificing the performance benefits of cached POS data.
Original PR description
Currently, since we read most data from cache, if an employee right was changed, it is not reflected in the pos. Steps to reproduce: ------------------- * Enable "Log in with employees" and set some…
Currently, since we read most data from cache, if an employee right was changed, it is not reflected in the pos. Steps to reproduce: ------------------- * Enable "Log in with employees" and set some records for each field. * Open session, make a sale, close register * Edit employees configuration, delete one, change rights advanced -> minimal * Reopen the session > Observation: The employee deleted is still visible in the list of cashiers and the employee that has now minimal rights is still having advanced rights. Why the fix: ------------ When removing rights from an employee it is important to have it reflected as soon as possible. A possible solution would have been to recompute `last_data_change` when making any modification on the employee rights but this would recompute everything and we lose the performance added by the caching feature. Instead, by adding the model to `uniqueModels` we ensure that anytime we reload the pos, all `hr.employee` records will be dropped from the indexedDB, which ends up using the data loaded. https://github.com/odoo/odoo/blob/5d52373b4c9d64968316c4e883d6b49c7cd1d048/addons/point_of_sale/static/src/app/services/data_service.js#L246-L251 opw-4699241
The Point of Sale now correctly includes extra charges from all selected product attributes, even when those attributes use different setup methods. This prevents undercharging at checkout and helps keep product pricing consistent for staff and customers.
Original PR description
Before this fix, when a product had multiple attributes with extra prices and differing creation modes (e.g. pills with instant creation and checkboxes with never creation), the extra price of attributes created instantly (like "pills") was not taken into account in the PoS. To reproduce: - Create two attribute lines with extra prices: 1. Display = Pills (creation = instantly) 2. Display = Multi-checkbox (creation = never) - Make the product available in the PoS and select it. Only the extra price from the multi-checkbox attribute was applied, leading to an incorrect total. opw-4684979 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Pricelist rules set on a parent product category now correctly apply to products in its child categories in Point of Sale. This helps stores maintain consistent pricing and discounts without duplicating rules across every subcategory.
Original PR description
Before this commit, pricelist rules defined on a parent category were not applied to products belonging to its child categories. opw-4685399 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr