Saturday, March 26, 2022
2 changes · master
Miscellaneous changes
The previous code generation for coupon used `getrandbits` which provides a less randomised code than uuid4 causing undeterministic errors during the tests. TaskId-2786904 Forward-Port-Of: odoo/odoo#86251
Original PR description
The previous code generation for coupon used `getrandbits` which provides a less randomised code than uuid4 causing undeterministic errors during the tests. TaskId-2786904 Forward-Port-Of: odoo/odoo#86251
Steps : Install Sales, Project and Inventory. Create a Storable Product. Create a SO with this product, but do not confirm it. Change this product : > Type : Service > Sales > Service Tracking : Create a task in SO's project Confirm the SO. Issue : Neither a delivery or a task is created. Cause : Confirming the SO calls SO._timesheet_service_generation(), which filtered its SOLs based on is_service to 'create on order'. As this field is not updated when changing the type of th
Original PR description
Steps : Install Sales, Project and Inventory. Create a Storable Product. Create a SO with this product, but do not confirm it. Change this product : > Type : Service > Sales > Service Tracking : Create a task in SO's project Confirm the SO. Issue : Neither a delivery or a task is created. Cause : Confirming the SO calls SO._timesheet_service_generation(), which filtered its SOLs based on is_service to 'create on order'. As this field is not updated when changing the type of the product, the SOL with the service is filtered out. Fix : Update SOL_.is_service when changing SOL.product_id.type. opw-2786655 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#87112 Forward-Port-Of: odoo/odoo#86912