Thursday, October 19, 2023
17 changes · master
Enhancements to existing features
Helpdesk website pages now use page headings more consistently, reducing the chance of confusing or duplicated main titles. Some text sizing was also standardized with reusable font size classes, helping pages stay visually consistent and easier to maintain.
Original PR description
This commit permit to reduce the risk to have a wrong h1 tag or multiple h1 tags on the same page. This commit replaces some h1 tags by a h2. In addition, this commit removed some font size written in the style attribute and replace them by a font size class. Community PR: https://github.com/odoo/odoo/pull/129791 task-1958098
The Match button is now hidden when users are already viewing journal items to reconcile, where clicking it would only reapply the same filter. This reduces confusion while keeping matching details available when users open an existing matching number.
Original PR description
Problem --------- With the new Manual Reconciliation update the Match button just applies a filter. Once the filter is applied you can hit match again and it will just apply the same filter again and essentially do nothing. Seems confusing for customers. Objective --------- When you are in the context of "Journal Items to Reconcile" -> don't show "Match" in the column Matching. We need to keep the column if you go to a matching number existing. Solution --------- Create a JS function that returns true if both `partner_id` and `account_id` are used as filters at the same time. If true, the matching button is shown. task-3488287
The restaurant preparation display now includes more sample data and places some demo orders in earlier stages. This makes it easier for users to explore and demonstrate how kitchen preparation workflows behave with realistic activity.
Original PR description
The demo data linked to the preparation display (in restaurant) where a bit light. This commit add more data to the demo data and move some to previous stages so that user can play more with them. Community PR: odoo/odoo#138478
Marketing teams can now collapse domain/filter fields in marketing automation and push notification templates. This keeps configuration screens cleaner and easier to navigate when working with complex targeting rules.
Original PR description
In this commit, we add the foldable option to domain fields in marketing apps. Task-3458063
Resolved issues and error corrections
This fixes an access issue that could stop some HR users from opening employee contract forms. The salary attachment button is now only shown to users with the right payroll permission, preventing confusing errors and improving day-to-day HR workflow reliability.
Original PR description
Before this commit, the button ``action_open_salary_attachments`` on the contract form view would cause the error ``EvalError: Can not evaluate python expression: (bool(salary_attachments_count == 0))`` because the button would use the field ``salary_attachments_count`` in its invisible attribute. However, not all all users have the access rights to this field. With this commit, the button's access rights are limited to those of ``salary_attachments_count``, namely ``group_hr_payroll_user``
Code cleanup and technical improvements
This update replaces older layout alignment classes across several Odoo screens with current styling conventions. It helps keep the interface easier to maintain while preserving the same visual behavior for users.
Original PR description
The first intention of this commit was to remove ´@extend´ but it actually makes sense to remove ´.oe_left´ and ´.oe_right´ classes. Since grid we can avoid "float" elements (see .oe_subtotal_footer) and we only have to remove this class. For the other case, we have to use ´.float-start' and ´float-end´ to replace ´oe_left´ and ´oe_right´.
Miscellaneous changes
Steps: - Open field service - Create a task. - Click on the 'Worksheet' stat button. - Save the record. - Sign report. - Remove the selected project. Issue: - When the project is not selected or the project in which the timesheets are not allowed is selected, even then the customer preview stat button appears. Cause: - We have not given the necessary invisible condition to hide the stat button. Fix: - Giving necessary invisible conditions to hide the stat button. task-350825
Original PR description
Steps: - Open field service - Create a task. - Click on the 'Worksheet' stat button. - Save the record. - Sign report. - Remove the selected project. Issue: - When the project is not selected or the project in which the timesheets are not allowed is selected, even then the customer preview stat button appears. Cause: - We have not given the necessary invisible condition to hide the stat button. Fix: - Giving necessary invisible conditions to hide the stat button. task-3508259 Forward-Port-Of: odoo/enterprise#49079 Forward-Port-Of: odoo/enterprise#47450
This update changes several business apps to use Odoo's controlled randomization tool when creating sample or test data. This helps ensure generated data is repeatable, making testing and troubleshooting more reliable without affecting day-to-day users.
Original PR description
*: - appointment - knowledge - planning - sale_subscription Before this commit, the populate files for the listed modules were calling the random python library. As we don't want non-deterministic populate, this import has been changed to use the odoo Random tool which allows deterministic randomization through seeds.
Spreadsheet-related code was reorganized to make imports clearer and remove outdated testing helpers. This is an internal cleanup that should make future maintenance and testing easier without changing day-to-day spreadsheet behavior for users.
Original PR description
The first commit removes the default exports from the spreadsheet module. They don't bring anything except confusion when importing a mix of default and named exports. The second commit remove legacy test utils/JQuery. Task: [3559536](https://www.odoo.com/web#id=3559536&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form)
After commit 0b69bf0 the following bug appeared. Steps to reproduce: 1) activate only 'ups' shipping method 2) activate only 'cod' payment provider 3) add product of type 'product' to the cart and proceed to /shop/payment 4) observe the traceback This bug happens in website_sale_ups checkout_form.js when payment option is clicked on not yet initialized payment form widget. With the commit in community we always show payment options radio even if there is only one available, which all
Original PR description
After commit 0b69bf0 the following bug appeared. Steps to reproduce: 1) activate only 'ups' shipping method 2) activate only 'cod' payment provider 3) add product of type 'product' to the cart and proceed to /shop/payment 4) observe the traceback This bug happens in website_sale_ups checkout_form.js when payment option is clicked on not yet initialized payment form widget. With the commit in community we always show payment options radio even if there is only one available, which allows to remove the problematic code in website_sale_ups. see related PR odoo/odoo#138935 Forward-Port-Of: odoo/enterprise#49062
When enterprise is installed as a package, importing this odoo.addons.l10n_nl_reports_sbr_icp will raise an ImportError due to this wrong import. @moduon MT-1075 Forward-Port-Of: odoo/enterprise#48673
Original PR description
When enterprise is installed as a package, importing this odoo.addons.l10n_nl_reports_sbr_icp will raise an ImportError due to this wrong import. @moduon MT-1075 Forward-Port-Of: odoo/enterprise#48673
- Display account in name_get, since many account can have template with the same name - Copy a template, copy the variable: very handy to handle different template that are translation of each other - Select the right account when create a template from the smart button on account form view Forward-Port-Of: odoo/enterprise#48880 Forward-Port-Of: odoo/enterprise#48416
Original PR description
- Display account in name_get, since many account can have template with the same name - Copy a template, copy the variable: very handy to handle different template that are translation of each other - Select the right account when create a template from the smart button on account form view Forward-Port-Of: odoo/enterprise#48880 Forward-Port-Of: odoo/enterprise#48416
Forward-Port-Of: odoo/enterprise#49072 Forward-Port-Of: odoo/enterprise#49021
Original PR description
Forward-Port-Of: odoo/enterprise#49072 Forward-Port-Of: odoo/enterprise#49021
Before this commit, the 0613d22 commit makes `unit_amount` field readonly to not allow the user to edit that field when he goes to timesheets views via Helpdesk action. The problem is since saas-16.3 version, the form view used in `act_hr_timesheet_line_helpdesk` action is the same then the one used in `My Timesheets` and so the field is not only in readonly in `act_hr_timesheet_line_helpdesk` action. This commit reverts the changes made for that form view to avoid having that field in readon
Original PR description
Before this commit, the 0613d22 commit makes `unit_amount` field readonly to not allow the user to edit that field when he goes to timesheets views via Helpdesk action. The problem is since saas-16.3 version, the form view used in `act_hr_timesheet_line_helpdesk` action is the same then the one used in `My Timesheets` and so the field is not only in readonly in `act_hr_timesheet_line_helpdesk` action. This commit reverts the changes made for that form view to avoid having that field in readonly in `My Timesheets` menu. Forward-Port-Of: odoo/enterprise#49134
Small fixes spotted during refactoring in master: - fix parameters passed to `_add_annex_fields_expenditures` - add the xml encoding and version declaration back (was accidentally removed) Forward-Port-Of: odoo/enterprise#49086 Forward-Port-Of: odoo/enterprise#48989
Original PR description
Small fixes spotted during refactoring in master: - fix parameters passed to `_add_annex_fields_expenditures` - add the xml encoding and version declaration back (was accidentally removed) Forward-Port-Of: odoo/enterprise#49086 Forward-Port-Of: odoo/enterprise#48989
…n_US locale The en_US default locale in o-spreadsheet is m/d/yyyy but it's mm/dd/yyyy in odoo. Because of this mismatch, spreadsheets from the source code of odoo (dashboards, templates) will have a small warning saying the spreadsheet locale and the user locale mismatch. That's because existing spreadsheet don't have any locale and the default one is used. This commit adds the locale to all o-spreadsheet json files. Notes: - we could have completely upgrade the json file format to t
Original PR description
…n_US locale The en_US default locale in o-spreadsheet is m/d/yyyy but it's mm/dd/yyyy in odoo. Because of this mismatch, spreadsheets from the source code of odoo (dashboards, templates) will have a small warning saying the spreadsheet locale and the user locale mismatch. That's because existing spreadsheet don't have any locale and the default one is used. This commit adds the locale to all o-spreadsheet json files. Notes: - we could have completely upgrade the json file format to the latest o-spreadsheet version (version: 14), but just adding the settings is enough - I didn't added the locale to a few template files which are minified (some have tens of thousands lines. The diff isn't worth it for such a minor annoyance. Forward-Port-Of: odoo/enterprise#49045
The consolidation report actions call the same report for the consolidation periods. Since the OWL reports restore options data from the session store, the same report was displayed. To solve this, a param is added to the action to ignore the session store. OPW-3547465 Forward-Port-Of: odoo/enterprise#49071 Forward-Port-Of: odoo/enterprise#49031
Original PR description
The consolidation report actions call the same report for the consolidation periods. Since the OWL reports restore options data from the session store, the same report was displayed. To solve this, a param is added to the action to ignore the session store. OPW-3547465 Forward-Port-Of: odoo/enterprise#49071 Forward-Port-Of: odoo/enterprise#49031