Daily updates from Odoo
Navigate
Branch
Monday, July 19, 2021
7 changes
Enhancements to existing features
Helpdesk features that depend on other apps, such as live chat, are now automatically disabled when those apps are uninstalled. This prevents teams from seeing or using settings that no longer work, reducing confusion for users.
Original PR description
Some features require the installation of a module (like livechat). Uninstalling those modules were not disabling the feature on the helpdesk team and was thus confusing to the users. This commit disables those features upon uninstalling those modules. TaskID: 2507003
Resolved issues and error corrections
This update fixes issues across several country-specific accounting, payroll, banking, and reporting modules, mostly to keep automated checks reliable and aligned with recent legal or platform changes. It reduces false warnings, prevents test data from leaking between runs, and improves compatibility for localized workflows in Argentina, Australia, Belgium, and Chile.
This update adjusts an internal manufacturing work order test to reflect that manufacturing orders are now locked by default. It helps keep automated checks reliable after a related core change, with no direct impact on day-to-day users.
Original PR description
Fixing test due to community fix that now makes MOs locked by default. Task: 2518523 COM PR: odoo/odoo#71874
Code cleanup and technical improvements
The web interface templates were updated to match a newer dropdown menu structure. This keeps enterprise navigation and Studio customization menus working consistently after the underlying interface component change.
Original PR description
This commit adapts templates with respect to a change in the Dropdown component API: the "menu" slot is now the default slot, and the former default slot (which was used to define the toggler) has now to be defined with the "toggler" slot.
Miscellaneous changes
get_all_products_by_barcode may take significant time in large databases (10-20 seconds). No need to load same data if we already did it before. It assumes that fetching result is the same as in previous request. 1. It may be different if the data are changed, e.g. product\location are added. It should not happen often and can be sorted by refreshing page. It should be a good trade off for performance 2. In multi-company environment the fetched data may be different. 2.1 In Odoo 1
Original PR description
get_all_products_by_barcode may take significant time in large databases (10-20 seconds). No need to load same data if we already did it before. It assumes that fetching result is the same as in previous request. 1. It may be different if the data are changed, e.g. product\location are added. It should not happen often and can be sorted by refreshing page. It should be a good trade off for performance 2. In multi-company environment the fetched data may be different. 2.1 In Odoo 12.0 it's possible to change current company in another browser tab and hence get inconsistency. But again, it can be sorted by page refreshing. 2.2. In later Odoo versions to change company you are forced to refresh the page and hence the cache will be cleaned. --- opw-2355449 Forward-Port-Of: odoo/enterprise#18836
…nabled Since 89e0412b845678d6fcbf32ea79bd64c38eeef78d There is now an option on the paperformat model to disable wkhtmltopdf's "smart shrinking" feature. However, this new field was not taken into account by the web_studio reporting editor that incorrectly applies a zoom on the element if the option is disabled. This commit fixes that behavior by first checking if the property is set to True before messing with the zoom. Task-26779 Forward-Port-Of: odoo/enterprise#19220
Original PR description
…nabled Since 89e0412b845678d6fcbf32ea79bd64c38eeef78d There is now an option on the paperformat model to disable wkhtmltopdf's "smart shrinking" feature. However, this new field was not taken into account by the web_studio reporting editor that incorrectly applies a zoom on the element if the option is disabled. This commit fixes that behavior by first checking if the property is set to True before messing with the zoom. Task-26779 Forward-Port-Of: odoo/enterprise#19220
- Go to settings > enable “intrastat” option - Create an invoice and add a customer from the United Kingdom(GB) - Select an invoice date after January 01, 2021 - confirm the invoice - Go to accounting> reporting> intrastat report Problem: This invoice should not appear in the report because due to Brexit, United Kingdom is no longer a member of the European Union and is not in the list of intrastat countries from january 2021 source: Brexit section: https://www.nbb.be/fr/statistiques
Original PR description
- Go to settings > enable “intrastat” option - Create an invoice and add a customer from the United Kingdom(GB) - Select an invoice date after January 01, 2021 - confirm the invoice - Go to accounting> reporting> intrastat report Problem: This invoice should not appear in the report because due to Brexit, United Kingdom is no longer a member of the European Union and is not in the list of intrastat countries from january 2021 source: Brexit section: https://www.nbb.be/fr/statistiques/commerce-exterieur/intrastat-info List of intrastat countries: https://www.nbb.be/doc/dq/f_pdf_ex/geo2021fr_intrastat.txt Solution: Check the country and date of the `account.invoice` to do not display United Kingdom(GB) in intrastat and sales reports, from January 2021 declaration Opw-2559007 Opw-2528030 Forward-Port-Of: odoo/enterprise#19713 Forward-Port-Of: odoo/enterprise#19681