Tuesday, January 13, 2015
4 changes
Resolved issues and error corrections
Odoo now reports missing external tools more clearly instead of hiding related errors. This helps users and administrators understand why asset compilation or report generation may fail, especially on Windows installations where tool lookup paths differ.
Original PR description
This commit changes the default behavior of `find_in_path`: it doesn't shallow the IOError exceptions anymore. It especially allows the asset bundle mechanism to handle the absence of the binaries used to compile sass/less to css. - ir_qweb: fallback the value of `get_command` to allow QWeb to display a message like "Could not execute command lessc" - ir_qweb: use of `find_in_path` to fetch binaries, allowing to look for binaries in `bin_path` (Windows releases) - fixed call of `find_in_path` by `_check_external_dependencies` in module.py - fixed call of `find_in_path` by report.py (it was manually raising an IOError)
Website link creation now correctly uses saved UTM cookie values again, improving campaign tracking accuracy. Newly created UTM options are immediately available in selection fields, and UTM selectors are hidden once a link is generated to simplify the user experience.
Original PR description
1. website_links UTMs are not set by the UTMs cookies values anymore 2. New UTM created by the select2 fields are directly added in the options of the field 3. Hide UTM selects when the link is generated
The update lets Odoo handle missing style-compilation tools more gracefully when building website or backend assets. Instead of failing unclearly, it can report which required command is unavailable and also finds bundled tools more reliably on Windows installations.
Original PR description
This commit allow the asset bundle mechanism to handle the absence of the binaries used to compile sass/less to css. - fallback the value of `get_command` to allow QWeb to display a message like "Could not execute command lessc" - use of `find_in_path` to fetch binaries, allowing to look for binaries in `bin_path` (Windows releases) - add a `raise_on_exception` kwarg to `find_in_path` so that the method does not shallow the exception - fixed call of `find_in_path` by report.py (it was manually raising an IOError)
This fixes an issue where mail action buttons could pass information in the wrong way, causing message sending to receive extra unintended data. The change helps ensure users can trigger email-related actions without errors from misplaced context information.
Original PR description
...the context to be passed as another argument. An intermediary function screens the arguments before calling send_mail.