Monday, February 10, 2025
2 changes · saas-18.1
Resolved issues and error corrections
Loyalty and promotion settings can now be saved even if the default Services product category was deleted. This prevents an unexpected setup error and keeps sales configuration workflows running smoothly.
Original PR description
Currently, an exception is generated when a user tries to find the 'Services' product category after it has been deleted. Steps to reproduce: 1. Install the sale_management module. 2. Navigate to…
Currently, an exception is generated when a user tries to find the 'Services' product category after it has been deleted. Steps to reproduce: 1. Install the sale_management module. 2. Navigate to Sales -> Configuration -> Product Categories. 3. Delete the 'Services' category. 4. Go to Sales Settings. 5. Enable 'Promotions, Loyalty & Gift Cards'. 6. Click Save -> An error occurs. Error: ```ParseError while parsing /home/odoo/src/odoo/saas-18.1/addons/loyalty/data/loyalty _data.xml:4, somewhere inside ``` This issue[1] occurs because when the system tries to reference the missing 'Services' product category, it results in a ParseError due to a missing required record. [1] - https://github.com/odoo/odoo/blob/4d9984d0b5f5a856104d11261fecd27ddc2e5466/addons/loyalty/data/loyalty_data.xml#L4-L11 This fix resolves the issue by providing a False value when the 'Services' product category is missing. sentry-6243406444 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix corrects when scheduled background jobs stop after reaching the 10-second limit. It helps prevent jobs from running longer than intended, improving system reliability without changing user-facing workflows.
Original PR description
Fix condition for odoo/odoo#195807. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr