Tuesday, October 13, 2020
2 changes · master
Resolved issues and error corrections
Website dynamic content blocks now show the right filter options for the current website while still supporting filters shared across all websites. This helps multi-website setups display and configure content more reliably, and also improves safe display of non-rendered content values.
Original PR description
Add a filtering by the contextual website_id when looking up available website_snippet_filters. Made the website_id selection non-required, and adapted filtering mechanisms to support the generic website selection. Also added missing escaping in general block rendering and in specific block rendering (for the product filter in website_sale). task-2312878 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix prevents expense analytic accounts and tags from being reset when a product is changed if the user has already selected values. It keeps existing expense details intact and resolves test failures when the analytic defaults feature is installed.
Original PR description
_onchange_product_id() used to always (re)set hr_expense analytic_account_id & analytic_tag_ids to default values. Or set those to false if no default values are found. Installing account_analytic_default_hr_expense made odoo/addons/hr_expense/tests/test_expenses.py tests fail - changed function name (no need to be a _onchange_product_id override) - removed super() & return - only set default value to var if var is False Task: 2205544