Sunday, September 20, 2026
2 changes · 19.0
Resolved issues and error corrections
This fixes an issue where product color options without a manually selected color appeared as plain gray circles in the add-to-cart popup. Customers now see the same color swatches in the configurator as they do on the product page, reducing confusion during product selection.
Original PR description
Issue: Color attribute values without an explicit html_color show correctly on the product page but render as a plain gray circle in the "Add to cart" popup / product configurator, even though selecting them still works. Steps to reproduce: 1. Create a Color attribute value without picking a color (leave the Color field unset) and add it to a published product. 2. Open the product page: the swatch shows fine. 3. Click Add to Cart to open the popup: the swatch is a plain gray circle instead. Cause: product_template_attribute_line.xml (sale.ptav_color) used `ptav.html_color` directly with no fallback, producing the invalid CSS "background-color:false" when html_color is unset. Fix: Apply the same `html_color or name` fallback in the configurator's color-swatch template. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#288582
This fixes an issue where new US companies using AvaTax could create taxes without the proper accounting account when the database was set up without demo data. AvaTax invoice and refund accounts are now assigned during company setup, helping ensure tax entries post correctly from the start.
Original PR description
Steps to reproduce: - Create a DB and Install `Accounting` without demo data - In Companies > Create New Company with `US` Localization - Switch to US Company > Add `Avatax` Credentials - Create a…
Steps to reproduce: - Create a DB and Install `Accounting` without demo data - In Companies > Create New Company with `US` Localization - Switch to US Company > Add `Avatax` Credentials - Create a Product with `Avatax Category` - Create a Invoice > In Other Info `Fiscal Position` - `Automatic Tax Mapping (AvaTax)` > `Compute Taxes` - In Taxes check newly created tax does not have a account ID Issue: AvaTax fiscal position created from chart templates have empty `avatax_invoice_account_id` and `avatax_refund_account_id` fields on a fresh database without demo data. Problem: Both fields use [defaults] based on `company.account_sale_tax_id`. During initial CoA loading, `_load_data()` creates the AvaTax fiscal position before `_post_load_data()` sets `company.account_sale_tax_id`. The defaults therefore resolve to an empty recordset and no tax account is assigned. This issue does not occur in databases with demo data because the demo company is already loaded, so `company.account_sale_tax_id` is already set when the AvaTax fiscal position is created. Solution: Set the invoice and refund accounts explicitly in the AvaTax fiscal position template to ensure they are correctly assigned during CoA loading. [defaults]: https://github.com/odoo/enterprise/blob/de17c107651394025e9a3d5cbed8d81bcfc2e76d/account_avatax/models/account_fiscal_position.py#L9-L13 opw-6347128 Forward-Port-Of: odoo/enterprise#126604