Monday, June 2, 2025
3 changes · saas-17.4
Miscellaneous changes
**Issue** When displaying related products for a product attribute, only unarchived products are shown, even when the archived filter is applied. Steps to Reproduce: 1. Install the Sales app 2. Select or create a product 3. Select or create an attribute and values 4. Archive the product 5. Go to the attribute page 6. Click on related products smart button 7. Set Archived filter 8. Observe that the archived product is not displayed. Expected Behavior: After applying the Archived
Original PR description
**Issue** When displaying related products for a product attribute, only unarchived products are shown, even when the archived filter is applied. Steps to Reproduce: 1. Install the Sales app 2.…
**Issue** When displaying related products for a product attribute, only unarchived products are shown, even when the archived filter is applied. Steps to Reproduce: 1. Install the Sales app 2. Select or create a product 3. Select or create an attribute and values 4. Archive the product 5. Go to the attribute page 6. Click on related products smart button 7. Set Archived filter 8. Observe that the archived product is not displayed. Expected Behavior: After applying the Archived filter, related products, including archived ones, should be displayed. Actual Behavior: Archived related products are not shown, even when the Archived filter is applied. **Root Cause** When the related products smart button is clicked, the action_open_related_products method is triggered. In this method, when applying the domain for related products, an implicit active_test=True filter is applied by default. This filter excludes archived records, meaning only active (unarchived) products are displayed. **Fix** The issue was resolved by explicitly modifying the context to include archived products by setting active_test=False when querying the related products. This ensures that both active and archived related products are shown, even when the Archived filter is applied. opw-4565133 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#197513
Ensure that automatically generated discount lines inherit the analytic distribution from the original invoice lines. This allows consistent reporting and accurate profitability analysis in analytic accounting. 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#208279
Original PR description
Ensure that automatically generated discount lines inherit the analytic distribution from the original invoice lines. This allows consistent reporting and accurate profitability analysis in analytic accounting. 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#208279
Runbot error: https://runbot.odoo.com/odoo/error/160977 This commit fixes the tour by moving the steps related to the contract management in the python part of the test. Also fixes the formatting of the tour file. Forward-Port-Of: odoo/enterprise#83686
Original PR description
Runbot error: https://runbot.odoo.com/odoo/error/160977 This commit fixes the tour by moving the steps related to the contract management in the python part of the test. Also fixes the formatting of the tour file. Forward-Port-Of: odoo/enterprise#83686