odoo/odoo#199990

Created by Bugfix, Levi Siuzdak
Merged at 858494ca6e165ebdd9d83af8b65d3894314aa28e

Statuses:

label
odoo-dev:saas-18.2-runbot-111883-website_sequence_sale_timesheet_test-sile
head
486b798a7d7cd121f2bcea310ad5703e000abb78
merged
5 months ago by Bugfix, Levi Siuzdak
odoo/odoo
saas-18.2 #199990
saas-18.3
saas-18.4
master #200172

[FIX] website_sale: decouple `sale_timesheet` dependency from test

Versions

  • saas-18.2+

Steps

  1. Have a database without sale_timesheet installed;
  2. run TestWebsiteSequence test suite.

Issue

ValueError: No record found...

Cause

Commit 32ad7ab3faf52 updated the test to account for a sale_timesheet product that cannot be deleted or archived, but didn't check whether the module was actually installed.

Solution

Revert changes to the test that were added in the commit, and instead archive the product via cr.execute to bypass the write method where the restriction exists.

runbot-111883