Friday, September 20, 2024
3 changes · saas-17.2
Resolved issues and error corrections
The Point of Sale product information popup now reads the cashier role from the correct place after a page refresh. This prevents an error for employee logins with administrator PoS access, allowing staff to continue viewing product details normally.
Original PR description
Problem: The `role` attribute is being retrieved from the `raw` field, but when the page is refreshed, all attributes (including `role`) are set in the `cashier` object, not in `raw`. Steps to reproduce: - Set up a PoS session with the "Log in with Employees" setting enabled. - Use a User/Employee with Administrator PoS access (e.g., Mitchell Admin). - Start a PoS session. - Refresh the page. - Click the "i" icon to see more information about a product. - A traceback occurs. opw-4120414 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Creating a new Argentine company now keeps the AFIP responsibility type selected by the user instead of reverting it to the default Monotributo option. This ensures the correct chart of accounts is loaded from the start, reducing setup errors for Argentine accounting.
Original PR description
Create a company: - Name: Any - Country: Argentina - AFIP Responsibility Type: IVA Responsable Inscripto Save Issue: Company AFIP Type will be set back to Responsable Monotributo This occurs because when company is created the system will try to load the coa. The COA to load is currently determined only by the country of the new company, and the default for new Argentina companies is 'Responsable Monotributo' Then, the AFIP Type is changed to match the CoA In order to take into account the company settings when loading the CoA we check via context if we are operating on a company and load the template matching the AFIP Type opw-4175351
Demo employees in Sales Timesheets are now linked to newly created, dedicated contacts instead of incorrect existing ones. This keeps sample data cleaner and avoids confusion when evaluating employee, timesheet, and sales workflows.
Original PR description
The employees created in the demo data (see https://github.com/odoo/odoo/pull/108795) of sale_timesheet were linked to the wrong partners, we then create new partners dedicated to those new employees. version-17.2 task-3874828 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr