Daily updates from Odoo
Tuesday, September 7, 2021
8 changes · master
Enhancements to existing features
The marketing automation email setup was cleaned up by removing a scheduling section that is no longer used. The A/B Test page is also hidden in this area, reducing clutter and helping users focus on currently supported options.
Original PR description
We have now removed the schedule block from the view. Since no longer needed we remove this part task-2123242 COM PR: odoo/odoo#75622
The Helpdesk digest email now includes revised tip content. This improves the clarity and usefulness of recurring digest emails for Helpdesk users.
Original PR description
Revamped the tip in Helpdesk's digest_data.xml for digest emails.
Resolved issues and error corrections
This update removes invalid default values from certain linked read-only fields so records are initialized consistently. It helps prevent configuration errors that could affect documents, appraisals, and Belgian payroll accounting tests without changing normal user workflows.
Original PR description
Setting a default value on a related field that is readonly without an inverse method is illegale. We now ensure it at the field instanciation. If the other related field has a default value then duplicating the default on the relating field is illegale too. There is no cheap way to ensure it so we fixed those fields here without including a warning. For the record, granting a default value to a related readonly=False field is permitted. Compagnion enterprise commit of #67762
Some conditional formatting terms in Documents spreadsheets were not appearing in the user's selected language. This fix ensures those labels are translated, improving clarity for multilingual users.
Original PR description
before this commit, some conditionnal formatting terms were not translated. after this commit they are. task-id : 2627637
Code cleanup and technical improvements
This update tidies chart configuration across multiple Odoo Enterprise reporting views without changing core business workflows. Reports should continue to look and behave the same, while the underlying setup is simpler and easier to maintain.
Miscellaneous changes
task-2504306 Doc PR: https://github.com/odoo/documentation/pull/1115 Forward-Port-Of: odoo/enterprise#20265
Original PR description
task-2504306 Doc PR: https://github.com/odoo/documentation/pull/1115 Forward-Port-Of: odoo/enterprise#20265
Steps to reproduce: - Install "Field Service" module - Go to settings and activate "Recurring Tasks" - Go to Field Service -> All tasks and create new one - Set for Planned Date : 10/01/2021 14:00 -> 10/02/2021 14:30 - Check Recurrent and go to Recurrence tab - Select repeat every 1 weeks - Select Monday Issue: Wrong date for next occurrences (first occurrence is 09/06 instead of 10/04). Cause: Calculation based on today date. Solution: Calculate
Original PR description
Steps to reproduce: - Install "Field Service" module - Go to settings and activate "Recurring Tasks" - Go to Field Service -> All tasks and create new one - Set for Planned Date : 10/01/2021 14:00 -> 10/02/2021 14:30 - Check Recurrent and go to Recurrence tab - Select repeat every 1 weeks - Select Monday Issue: Wrong date for next occurrences (first occurrence is 09/06 instead of 10/04). Cause: Calculation based on today date. Solution: Calculate next occurrences based on planned_start_date if set. opw-2628777 Forward-Port-Of: odoo/enterprise#20625 Forward-Port-Of: odoo/enterprise#20529
The bcrp.gob.pe service is returning values with zero - "name": "26.Ago.21", "values": ["4.098"] - "name": "27.Ago.21", "values": ["0"] Checked on 1-Sept from: - https://estadisticas.bcrp.gob.pe/estadisticas/series/api/PD04640PD/json/20210827/20210827/ing -  I don't think the PEN currency were devalued to zero USD but a possible human error
Original PR description
The bcrp.gob.pe service is returning values with zero - "name": "26.Ago.21", "values": ["4.098"] - "name": "27.Ago.21", "values": ["0"] Checked on 1-Sept from: -…
The bcrp.gob.pe service is returning values with zero
- "name": "26.Ago.21", "values": ["4.098"]
- "name": "27.Ago.21", "values": ["0"]
Checked on 1-Sept from:
- https://estadisticas.bcrp.gob.pe/estadisticas/series/api/PD04640PD/json/20210827/20210827/ing
- 
I don't think the PEN currency were devalued to zero USD
but a possible human error
Better considering this case if another similar error is raised again
The traceback running the cron in Odoo-sh:
```txt
Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/odoo/src/odoo/odoo/http.py", line 684, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/http.py", line 360, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 913, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 532, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1393, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/enterprise/currency_rate_live/models/res_config_settings.py", line 520, in update_currency_rates_manually
if not (self.company_id.update_currency_rates()):
File "/home/odoo/src/enterprise/currency_rate_live/models/res_config_settings.py", line 92, in update_currency_rates
parse_results = parse_function(active_currencies)
File "/home/odoo/src/enterprise/currency_rate_live/models/res_config_settings.py", line 414, in _parse_bcrp_data
rate = 1.0 / float(series['periods'][-1]['values'][0])
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 640, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/http.py", line 316, in _handle_exception
raise exception.with_traceback(None) from new_cause
ZeroDivisionError: float division by zero
```
Forward-Port-Of: odoo/enterprise#20567