Tuesday, May 21, 2024
15 changes · master
Enhancements to existing features
Field Service tasks now show the customer's mobile number when both phone and mobile contact details are available. This helps field workers reach customers through the most relevant number more easily, improving on-site coordination and customer communication.
Original PR description
Description: We have implemented a change to enable partner's mobile number in the Field Service module, even when both phone and mobile numbers are available. Before this commit only partner mobile number is set in the field service and after this commit we have given priority to mobile number in field service. This commit ensures a more user-friendly and adaptable experience for handling partner contact information in the Field Service module. task-3617941
The Knowledge Article template now shows the Mac undo shortcut, Command+Z, alongside existing guidance. This makes keyboard shortcut instructions clearer for Mac users and cleans up spacing in another displayed shortcut.
Original PR description
This PR adds the command shortcut (⌘+Z) to perform the 'UNDO' operation in the 'Knowledge Article' template for MAC users. Task-[3926824](https://www.odoo.com/web#id=3926824&menu_id=4722&cids=2&action=333&active_id=965&model=project.task&view_type=form)
Resolved issues and error corrections
This fixes the rental search date fields so clicking the calendar icon opens the date picker as expected. It restores a small but important convenience for customers selecting rental dates, reducing friction during booking.
Original PR description
Since commit [1] the calendar icon in input group date is not clickable anymore and does not open the date picker anymore. See community counterpart for more details. [1]: https://github.com/odoo/odoo/commit/910897fc97d87b08f01627094ec8c159f5267628
Miscellaneous changes
**Steps** - Install Field Service and Helpdesk - Create a ticket for a customer. Add a field service task. A link will be sent to the customer via mail (visible in chatter). ** 403 for the customer if not logged in when clicking the link ** **Issue** Access rights issue here https://github.com/odoo/enterprise/blob/4f44fcf5761ca5499ede148e2e49363e3c8f80bc/helpdesk_fsm/controllers/portal.py#L34 **Fix** Don't show the "Tasks" link if the user doesn't have access rights to them. opw-39
Original PR description
**Steps** - Install Field Service and Helpdesk - Create a ticket for a customer. Add a field service task. A link will be sent to the customer via mail (visible in chatter). ** 403 for the customer if not logged in when clicking the link ** **Issue** Access rights issue here https://github.com/odoo/enterprise/blob/4f44fcf5761ca5499ede148e2e49363e3c8f80bc/helpdesk_fsm/controllers/portal.py#L34 **Fix** Don't show the "Tasks" link if the user doesn't have access rights to them. opw-3911444 Forward-Port-Of: odoo/enterprise#62087
To reproduce: - Log-in Administrator - Go to Timesheet app - Switch to list view - Add 2 group by: * Date > Week * Date > Day - Switch to grid view After odoo/enterprise@28337b5ae971 that result in a crash (error dialog) saying that `day` is not valid aggregation methods. This commit ensure we remove all groupby on the column field (no only the first one). opw-3908383 Forward-Port-Of: odoo/enterprise#62381
Original PR description
To reproduce: - Log-in Administrator - Go to Timesheet app - Switch to list view - Add 2 group by: * Date > Week * Date > Day - Switch to grid view After odoo/enterprise@28337b5ae971 that result in a crash (error dialog) saying that `day` is not valid aggregation methods. This commit ensure we remove all groupby on the column field (no only the first one). opw-3908383 Forward-Port-Of: odoo/enterprise#62381
Before this commit, When the developer mode is enabled and the user click on the available "x" button in the selection box, a traceback will be occur. Steps to Reproduce : 1. Toggle On the developer mode 2. Go to any app ( here Sales ) ---> Toggle Studio 3. Click on Reports ---> Select any Report 4. Click on Edit XML sources --> Click on the "x" button available 5. Traceback occurs Video link : [link](https://drive.google.com/file/d/1Qf6VI118YypPQI8Je6DP4xkfjSVqwCC_/view) Traceback
Original PR description
Before this commit, When the developer mode is enabled and the user click on the available "x" button in the selection box, a traceback will be occur. Steps to Reproduce : 1. Toggle On the developer mode 2. Go to any app ( here Sales ) ---> Toggle Studio 3. Click on Reports ---> Select any Report 4. Click on Edit XML sources --> Click on the "x" button available 5. Traceback occurs Video link : [link](https://drive.google.com/file/d/1Qf6VI118YypPQI8Je6DP4xkfjSVqwCC_/view) Traceback message link : https://pastebin.com/cunYkfBm after the commit,The "x" button in the selection box won't be shown to users. Task-3866142 Forward-Port-Of: odoo/enterprise#62543 Forward-Port-Of: odoo/enterprise#61283
This commits cleans up countries from manifest which were missed out by the following commit- https://github.com/odoo/enterprise/commit/148810637bf9e7a9cc53338f665ec612221a1ba2 task-3935204 Community PR- https://github.com/odoo/odoo/pull/165936 Forward-Port-Of: odoo/enterprise#62793 Forward-Port-Of: odoo/enterprise#62723
Original PR description
This commits cleans up countries from manifest which were missed out by the following commit- https://github.com/odoo/enterprise/commit/148810637bf9e7a9cc53338f665ec612221a1ba2 task-3935204 Community PR- https://github.com/odoo/odoo/pull/165936 Forward-Port-Of: odoo/enterprise#62793 Forward-Port-Of: odoo/enterprise#62723
When the user creates a new product with barcode and tries to save it, a traceback will appear. Steps to reproduce the error: - Install "product_barcodelookup" module - Add the API key for barcode lookup in settings - Create new product > add barcode(ex. 817882025607) > Save Traceback: ``` AttributeError: 'uom.uom' object has no attribute '_get_weight_uom_id_from_ir_config_parameter' File "odoo/http.py", line 2253, in __call__ response = request._serve_db() File "odoo/http
Original PR description
When the user creates a new product with barcode and tries to save it, a traceback will appear. Steps to reproduce the error: - Install "product_barcodelookup" module - Add the API key for barcode…
When the user creates a new product with barcode and tries to save it,
a traceback will appear.
Steps to reproduce the error:
- Install "product_barcodelookup" module
- Add the API key for barcode lookup in settings
- Create new product > add barcode(ex. 817882025607) > Save
Traceback:
```
AttributeError: 'uom.uom' object has no attribute '_get_weight_uom_id_from_ir_config_parameter'
File "odoo/http.py", line 2253, in __call__
response = request._serve_db()
File "odoo/http.py", line 1829, in _serve_db
return self._transactioning(_serve_ir_http, readonly=ro)
File "odoo/http.py", line 1849, in _transactioning
return service_model.retrying(func, env=self.env)
File "odoo/service/model.py", line 134, in retrying
result = func()
File "odoo/http.py", line 1827, in _serve_ir_http
return self._serve_ir_http(rule, args)
File "odoo/http.py", line 1834, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "odoo/http.py", line 2059, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "odoo/addons/base/models/ir_http.py", line 220, in _dispatch
result = endpoint(**request.params)
File "odoo/http.py", line 740, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "addons/web/controllers/dataset.py", line 38, in call_kw
return self._call_kw(model, method, args, kwargs)
File "addons/web/controllers/dataset.py", line 34, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "odoo/api.py", line 458, in call_kw
result = getattr(recs, name)(*args, **kwargs)
File "addons/web/models/models.py", line 1004, in onchange
record._apply_onchange_methods(field_name, result)
File "odoo/models.py", line 6879, in _apply_onchange_methods
res = method(self)
File "home/odoo/src/enterprise/saas-17.2/product_barcodelookup/models/product_template.py", line 17, in _onchange_barcode
product._update_product_by_barcodelookup(product, product.barcode)
File "home/odoo/src/enterprise/saas-17.2/product_barcodelookup/models/product_template.py", line 55, in _update_product_by_barcodelookup
to_unit=self.env['uom.uom']._get_weight_uom_id_from_ir_config_parameter(),
```
https://github.com/odoo/enterprise/blob/058a2b63d3272d6b7fd52afba7951c56494b68f5/product_barcodelookup/models/product_template.py#L55 Here, "uom.uom" model has no _get_weight_uom_id_from_ir_config_parameter method.
so It will lead to the above traceback.
sentry-5373607708
Forward-Port-Of: odoo/enterprise#62828A separate tree view is defined in `whatsapp_template_view_form` to display the `variable_ids` field on the Variables page. This tree view contains fields that are not needed to display, such as `model`, `line_type`, and `name`. These fields are made invisible using `column_invisible="1"`. Task-3902030 Forward-Port-Of: odoo/enterprise#61952
Original PR description
A separate tree view is defined in `whatsapp_template_view_form` to display the `variable_ids` field on the Variables page. This tree view contains fields that are not needed to display, such as `model`, `line_type`, and `name`. These fields are made invisible using `column_invisible="1"`. Task-3902030 Forward-Port-Of: odoo/enterprise#61952
When accessing EC listing through the "Do not forget to submit the EC Sales list report" warning, the tax report's options used not to be passed onto EC listing. Steps to reproduce original issue: - Install `l10n_be_reports` - Create an invoice for a customer with 'Intra-Community' as a 'Fiscal Position' - Confirm it - Go to: Accounting > Reporting > Statement Reports > Tax Report - Select a period that'd include the invoice - Click on the "Do not forget to submit the EC Sales list re
Original PR description
When accessing EC listing through the "Do not forget to submit the EC Sales list report" warning, the tax report's options used not to be passed onto EC listing. Steps to reproduce original issue: - Install `l10n_be_reports` - Create an invoice for a customer with 'Intra-Community' as a 'Fiscal Position' - Confirm it - Go to: Accounting > Reporting > Statement Reports > Tax Report - Select a period that'd include the invoice - Click on the "Do not forget to submit the EC Sales list report" warning - The period selected will be the wrong one task-3891799 Forward-Port-Of: odoo/enterprise#62761 Forward-Port-Of: odoo/enterprise#62642
This commit fixes an issue that was brought by the redesign of Odoo, Milk. This redesign modified a scss variable for kanban views inside of form views which removed the background of the kanban view's headers. Now a new css rule has been added to the kanban embedded view so that the background comes back to its original value inside of Knowledge. task-3930157 Forward-Port-Of: odoo/enterprise#62528
Original PR description
This commit fixes an issue that was brought by the redesign of Odoo, Milk. This redesign modified a scss variable for kanban views inside of form views which removed the background of the kanban view's headers. Now a new css rule has been added to the kanban embedded view so that the background comes back to its original value inside of Knowledge. task-3930157 Forward-Port-Of: odoo/enterprise#62528
This commit fixes an oversight in the forward-port of https://github.com/odoo/enterprise/pull/59342, see comment https://github.com/odoo/enterprise/pull/59342#pullrequestreview-1966528450 opw-3746608 Forward-Port-Of: odoo/enterprise#62603
Original PR description
This commit fixes an oversight in the forward-port of https://github.com/odoo/enterprise/pull/59342, see comment https://github.com/odoo/enterprise/pull/59342#pullrequestreview-1966528450 opw-3746608 Forward-Port-Of: odoo/enterprise#62603
Before this commit, users were able to see one2many, many2many, and binary fields in the sortby dropdown menu in the map and list views of the studio. Steps to reproduce: - Project > Tasks > All Tasks. - Click on toggle studio and navigate to View tab in the sidebar. - In the sortby dropdown menu, all fields, including x2many and binary, were visible. Observed behavior: Users were able to select one2many, many2many, and binary fields for sorting via the studio sidebar in the map and
Original PR description
Before this commit, users were able to see one2many, many2many, and binary fields in the sortby dropdown menu in the map and list views of the studio. Steps to reproduce: - Project > Tasks > All Tasks. - Click on toggle studio and navigate to View tab in the sidebar. - In the sortby dropdown menu, all fields, including x2many and binary, were visible. Observed behavior: Users were able to select one2many, many2many, and binary fields for sorting via the studio sidebar in the map and list views. Expected behavior: One should not be able to sort by one2many, many2many, and binary fields in the map and list views via the studio. After this commit, users will not be able to see one2many, many2many, and binary fields in the sortby dropdown menu in the map and list views of the studio. Task-3790886 Forward-Port-Of: odoo/enterprise#62527 Forward-Port-Of: odoo/enterprise#59733
Kilometers are only computed using the aller-simple distance instead of aller retour Forward-Port-Of: odoo/enterprise#62366
Original PR description
Kilometers are only computed using the aller-simple distance instead of aller retour Forward-Port-Of: odoo/enterprise#62366
Steps: - Schedule an appointment for one table at a specific time. - Open the POS and verify the appointment. - In a separate tab, open the appointments application and transfer the appointment to a different table. - Return to the POS tab and confirm that the appointment is displayed on both tables. Issue: Both tables display scheduled appointments. Cause: Booking is not removed from the previous table. FIX: When updating an appointment to a new table, the booking is only visibl
Original PR description
Steps: - Schedule an appointment for one table at a specific time. - Open the POS and verify the appointment. - In a separate tab, open the appointments application and transfer the appointment to a different table. - Return to the POS tab and confirm that the appointment is displayed on both tables. Issue: Both tables display scheduled appointments. Cause: Booking is not removed from the previous table. FIX: When updating an appointment to a new table, the booking is only visible on current booking table. task-3893909 Forward-Port-Of: odoo/enterprise#62020