Daily updates from Odoo
Tuesday, August 30, 2022
12 changes · master
Enhancements to existing features
Unread message counts in Odoo’s enterprise mail experience are now tracked at the conversation channel level rather than on the broader thread object. This makes the mail interface’s unread indicators more consistent and easier to maintain, with minimal direct impact on day-to-day users.
Original PR description
Community: odoo/odoo#98149 Part of task-2948676.
This update keeps the Documents kanban view aligned with the latest interface styling changes. It removes a duplicated styling setting and adjusts the layout so the view continues to display correctly after the broader design refresh.
Original PR description
Part of the overall v16 SCSS optimization/restyle, task-2704984 Requires: - https://github.com/odoo/odoo/pull/96195 task-2892062
New automated performance checks were added for key Knowledge navigation paths. These tests help monitor database usage when users open the Knowledge tree panel or main Knowledge menu, supporting future optimization work without changing user-facing behavior.
Original PR description
This commit simply introduces a query counter test for the tree panel knowledge route. This will allow us to optimize that route in following commits. While we are at it, we also add a quick query counter test for the 'action_home_page' method, as it is called every time the main Knowledge menu is clicked. Task-2791000
Resolved issues and error corrections
This fix prevents account reports from breaking when a column contains a value that is not a number. Instead of returning an invalid empty value that can disrupt page rendering, the report now uses a safe blank value so users see the report correctly.
Original PR description
When the column value is not a number, the default result should be an empty string and not None. The value None makes the template bug because we try to concatenate classes. Signed-off-by: Ruben Gomes (rugo) <rugo@odoo.com>
Global filter field matching now shows the actual pivot or list name instead of the underlying model name. This makes spreadsheet filters clearer for users and helps them choose the right data source with less confusion.
Original PR description
Before this commit, the name that was displayed in the Field Matching section of global filters was the name of the model, not the name of the pivot/list Task-id 2960717
Users navigating journal item lists with keyboard arrows no longer encounter an error when focus reaches the table header. The system now skips attachment loading when no valid row cell is available, keeping accounting workflows uninterrupted.
Original PR description
…ew when using keynav Reaching the table header when using the Up/Down arrows to navigate the journal item list view causes a stack trace due to the unavailability of a cell to focus. In this case, we don't attempt to load to load an attachment
Features or functions removed from Odoo
This change removes obsolete accounting report files and logic that were left behind after the same functionality was moved elsewhere. It reduces maintenance overhead and lowers the risk of confusion without changing expected reporting behavior for users.
Original PR description
search_template.xml should have been removed with https://github.com/odoo/enterprise/commit/f435654f70f3d6a1fec7fa696945f2c0eb9a7056 as it is now defined in report_templates.xml The code in account_reports.py is already done with the init_options functions
Code cleanup and technical improvements
Several enterprise apps were adjusted to stay compatible with an underlying service API update. This keeps features such as documents, spreadsheets, payroll dashboards, maps, and studio reports working reliably after the platform change.
Original PR description
This PR is the enterprise counter-part of odoo/odoo#99018 It adapts calls to the orm service w.r.t. its API changes.
This update renames an internal setting that controls whether selection options are available in document lists. It does not change user-facing behavior, but makes the code easier to understand and maintain for future improvements.
Miscellaneous changes
Before this PR: In export invoices for l10n-cl, if the user tries to use the original customer vat number, or if it was empty, there is an error when Odoo creates the envelope in order to send the invoice to the customer. After this PR: For foreign customers, prevent the need to use 55555555-5 as the partner vat if the customer is a foreigner, also allowing to use its own original vat number, selecting the correct RUT for foreigners during the envelope creation. In this case, we evaluate
Original PR description
Before this PR: In export invoices for l10n-cl, if the user tries to use the original customer vat number, or if it was empty, there is an error when Odoo creates the envelope in order to send the invoice to the customer. After this PR: For foreign customers, prevent the need to use 55555555-5 as the partner vat if the customer is a foreigner, also allowing to use its own original vat number, selecting the correct RUT for foreigners during the envelope creation. In this case, we evaluate whether the partner is a foreign customer using the l10n_cl_taxpayer_type field, which must have the value '4'. This is because, if we evaluate if the client is foreign using only the country_id, we run the risk of preventing the possibility of creating a conventional ticket (boleta) if that client does not qualify (or does not need) an invoice (export invoice code 110). Forward-Port-Of: odoo/enterprise#30096
…ith a form view With this commit, `See records` action on pivot cell now redirects to an action with both list and form view. Task-id 2941453 Forward-Port-Of: odoo/enterprise#30817 Forward-Port-Of: odoo/enterprise#30771
Original PR description
…ith a form view With this commit, `See records` action on pivot cell now redirects to an action with both list and form view. Task-id 2941453 Forward-Port-Of: odoo/enterprise#30817 Forward-Port-Of: odoo/enterprise#30771
Side effect of commit [1]. With this commit, the goal was to allow SEPA credit transfers for Swiss companies instead of forcing the use of generic credit transfers. However, other situations were encountered were some payments were considered as SEPA while they should be generic instead. This commit should solve the 2 issues identified: 1/ for Swiss companies, all warnings were deactivated. We should remove that, as there is no real business need for this, and we now need to proper
Original PR description
Side effect of commit [1]. With this commit, the goal was to allow SEPA credit transfers for Swiss companies instead of forcing the use of generic credit transfers. However, other situations were…
Side effect of commit [1]. With this commit, the goal was to allow SEPA credit transfers for Swiss companies instead of forcing the use of generic credit transfers. However, other situations were encountered were some payments were considered as SEPA while they should be generic instead. This commit should solve the 2 issues identified: 1/ for Swiss companies, all warnings were deactivated. We should remove that, as there is no real business need for this, and we now need to properly detect SEPA and generic payments. 2/ for operations in currency other than EUR, we were not returning a warning if the currency of the company was not EUR, which is often the case for Swiss companies. We should keep the existing intended behavior and not display useless warning in case of Swiss companies, but we should do the filtering outside of the function that computes the warnings to avoid side effects as it is used elsewhere like in the function to compute the field sct_generic. [1]:https://github.com/odoo/enterprise/commit/f1b955609633f9c5debf36035425455a7fdb6ac3 opw-2961290 Forward-Port-Of: odoo/enterprise#30807 Forward-Port-Of: odoo/enterprise#30770