Sunday, August 25, 2024
1 change · saas-17.2
Miscellaneous changes
Steps to reproduce: - Install `website_sale`, `sale_purchase_inter_company_rules` - Set the second website for "My Company (Chicago)" and as the domain put "http://2.localhost:8069/" - Create an SO on San Francisco company and save it without confirming - Execute the following SQL command: ```sql update sale_order set website_id=2, company_id=2, pricelist_id=null where id=41; -- here put the id of the SO ``` - Now open the website app and select Website 2. Issues: Internal error, thi
Original PR description
Steps to reproduce: - Install `website_sale`, `sale_purchase_inter_company_rules` - Set the second website for "My Company (Chicago)" and as the domain put "http://2.localhost:8069/" - Create an SO on San Francisco company and save it without confirming - Execute the following SQL command: ```sql update sale_order set website_id=2, company_id=2, pricelist_id=null where id=41; -- here put the id of the SO ``` - Now open the website app and select Website 2. Issues: Internal error, this is due to the fact that we're raising a UserError here. https://github.com/odoo/odoo/blob/79ad7396b15a9e26e812f2f2151241fa5bf76e18/addons/website_sale/models/website.py#L365-L373 While a better solution is searched the best one for stable is to remove the UserError. opw-4054699 Forward-Port-Of: odoo/odoo#176926