Tuesday, October 17, 2023
9 changes · master
Enhancements to existing features
The subscription portal now presents a single “View details” action instead of separate download and print buttons. This makes the customer experience clearer and reduces confusion when users want to review subscription information.
Original PR description
task-3484125
Miscellaneous changes
Some countries don't have a legally fixed chart of accounts, and hence cannot use the 'account_codes' engine in their Balance Sheet and P&L. Instead they have to rely on account.account.tag objects associated with the accounts of the database, and target them in the reports using the 'domain' engine. However, the 'domain' engine lacks the feature achieved with the C and D suffixes in 'account_codes'. Indeed, in the latter, writing '123D' will consider all the accounts prefixed 123 if their ba
Original PR description
Some countries don't have a legally fixed chart of accounts, and hence cannot use the 'account_codes' engine in their Balance Sheet and P&L. Instead they have to rely on account.account.tag objects…
Some countries don't have a legally fixed chart of accounts, and hence cannot use the 'account_codes' engine in their Balance Sheet and P&L. Instead they have to rely on account.account.tag objects associated with the accounts of the database, and target them in the reports using the 'domain' engine. However, the 'domain' engine lacks the feature achieved with the C and D suffixes in 'account_codes'. Indeed, in the latter, writing '123D' will consider all the accounts prefixed 123 if their balance on the period is positive (C means negative). This is not doable with a domain. The financial reports engine, used pre-16.0, used to support that case with sum_if_pos_groupby and sum_if_neg_groupby. We mistakenly considered those syntaxes would not be required with tags, which is why we're making this commit in stable. This commit introduces a new tag(...) selector, usable with the account_codes engine just like any regular prefix selector. It can take an xmlid (for data files) or an account.account.tag id (for custos in the UI; if the tag was created manually) as parameter, and can be used together with account codes in the same formula. It also supports C and D suffixes and prefix exclusion. It is hence possible to combine it with the pre-existing syntax; for example: tag(account.some_tag)\\(42)D + 1234C + tag(42) - 456\\(4560) Task 3524409 Forward-Port-Of: odoo/enterprise#48753 Forward-Port-Of: odoo/enterprise#48374
The filter '`filter_multi_company`' in the spanish modelos was set to '`disabled`'. Applied the '`tax_units`' filter instead. Forward-Port-Of: odoo/enterprise#48981
Original PR description
The filter '`filter_multi_company`' in the spanish modelos was set to '`disabled`'. Applied the '`tax_units`' filter instead. Forward-Port-Of: odoo/enterprise#48981
This issue occurs when the user tries to upload an invalid file, at that time, an error will be generated. step to reproduce: - Install the `sign` module - Open sign app > Dashboard. - Click on the dropdown Menu of the template > Use Layout - Upload file > Confirm. - the error will be generated. PDF FILE - [sample.pdf](https://drive.google.com/file/d/1EFaigvjRhW8poY7EwBuzors8LVwi8Klp/view?usp=drive_link) sentry traceback- ``` ValueError: invalid literal for int() with base 10: b'
Original PR description
This issue occurs when the user tries to upload an invalid file, at that time, an error will be generated. step to reproduce: - Install the `sign` module - Open sign app > Dashboard. - Click on the…
This issue occurs when the user tries to upload an invalid file, at that time, an error will be generated.
step to reproduce:
- Install the `sign` module
- Open sign app > Dashboard.
- Click on the dropdown Menu of the template > Use Layout
- Upload file > Confirm.
- the error will be generated.
PDF FILE - [sample.pdf](https://drive.google.com/file/d/1EFaigvjRhW8poY7EwBuzors8LVwi8Klp/view?usp=drive_link)
sentry traceback-
```
ValueError: invalid literal for int() with base 10: b'>>'
File "PyPDF2/pdf.py", line 1703, in read
startxref = int(line)
PdfReadError: startxref not found
File "odoo/http.py", line 2134, in __call__
response = request._serve_db()
File "odoo/http.py", line 1710, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "odoo/service/model.py", line 133, in retrying
result = func()
File "odoo/http.py", line 1737, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "odoo/http.py", line 1938, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "odoo/addons/base/models/ir_http.py", line 191, in _dispatch
result = endpoint(**request.params)
File "odoo/http.py", line 717, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "addons/web/controllers/dataset.py", line 34, in call_button
action = self._call_kw(model, method, args, kwargs)
File "addons/web/controllers/dataset.py", line 26, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "odoo/api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "odoo/api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "home/odoo/src/enterprise/saas-16.4/sign/wizard/sign_duplicate_template_with_pdf.py", line 23, in duplicate_template_with_pdf
if not self._compare_page_templates(self.original_template_id.datas, self.new_pdf):
File "home/odoo/src/enterprise/saas-16.4/sign/wizard/sign_duplicate_template_with_pdf.py", line 44, in _compare_page_templates
pages_new_file = PdfFileReader(io.BytesIO(base64.b64decode(new_file)), strict=False, overwriteWarnings=False).getNumPages()
File "odoo/tools/pdf.py", line 191, in <lambda>
old_init(self, stream=stream, strict=strict, warndest=None, overwriteWarnings=False)
File "PyPDF2/pdf.py", line 1084, in __init__
self.read(stream)
File "PyPDF2/pdf.py", line 1707, in read
raise utils.PdfReadError("startxref not found")
```
After this commit, it will raise a validation error when uploading files is not valid.
sentry-4517279848
Forward-Port-Of: odoo/enterprise#48772
Forward-Port-Of: odoo/enterprise#48314**Description of the issue/feature:** This pull request introduces a new feature to the line chart, which addresses the need for users to easily switch between cumulative and non-cumulative display modes. **Current behavior before PR:** Currently ,the line chart only displays non-cumulative data, and there is no option to switch to cumulative mode. **Desired behavior after PR is merged:** After merging this PR, users will have the option to select or deselect the checkbox in the l
Original PR description
**Description of the issue/feature:** This pull request introduces a new feature to the line chart, which addresses the need for users to easily switch between cumulative and non-cumulative display modes. **Current behavior before PR:** Currently ,the line chart only displays non-cumulative data, and there is no option to switch to cumulative mode. **Desired behavior after PR is merged:** After merging this PR, users will have the option to select or deselect the checkbox in the line chart side panel. When the checkbox is selected, the chart will continue to show cumulative data, providing a comprehensive view of data progression. However, if the checkbox is deselected, the chart will display regular non-cumulative data. Forward-Port-Of: odoo/enterprise#48817 Forward-Port-Of: odoo/enterprise#45113
Changing the background of a new company sets the background of the main company Steps to reproduce: 1. Install Studio 2. Go to Settings > Companies > Manage Companies and create a new company 3. Go back to the home menu and switch to the new company 4. Toggle Studio, click on Customizations in the top left corner and change the background 5. The page reloads but the background hasn't changed (but the main company background has been modified) Solution: Update the request with the co
Original PR description
Changing the background of a new company sets the background of the main company Steps to reproduce: 1. Install Studio 2. Go to Settings > Companies > Manage Companies and create a new company 3. Go back to the home menu and switch to the new company 4. Toggle Studio, click on Customizations in the top left corner and change the background 5. The page reloads but the background hasn't changed (but the main company background has been modified) Solution: Update the request with the context (same solution as in https://github.com/odoo/enterprise/pull/41216) opw-3477836 Forward-Port-Of: odoo/enterprise#48986
Before this pr, when having a line folded (that hasn't been unfolded before), sort a column then unfold the lines a traceback appear because the list linesOrder has not yet been modified and so there is inconsistency between the two lists. By modifying the linesOrder list before the rendering of the template solves the issues. Task 3440961 Forward-Port-Of: odoo/enterprise#48970 Forward-Port-Of: odoo/enterprise#48386
Original PR description
Before this pr, when having a line folded (that hasn't been unfolded before), sort a column then unfold the lines a traceback appear because the list linesOrder has not yet been modified and so there is inconsistency between the two lists. By modifying the linesOrder list before the rendering of the template solves the issues. Task 3440961 Forward-Port-Of: odoo/enterprise#48970 Forward-Port-Of: odoo/enterprise#48386
Now that the sections have been introduced, that default values are not generated for tax reports, because the sections are not inheriting from the `account.generic_tax_report`. It's necessary to check section's source report for the comparison. Forward-Port-Of: odoo/enterprise#48983
Original PR description
Now that the sections have been introduced, that default values are not generated for tax reports, because the sections are not inheriting from the `account.generic_tax_report`. It's necessary to check section's source report for the comparison. Forward-Port-Of: odoo/enterprise#48983
When the side panel of a pivot/list is opened while the side panel of another pivot/listis already open, the datasource of the first pivot/listis used instead of the datasource of the second pivot/list. This can lead to tracebacks, or to wrong data being displayed. Task: [3463289](https://www.odoo.com/web#id=3463289&menu_id=4720&cids=1&action=333&active_id=2328&model=project.task&view_type=form) Forward-Port-Of: odoo/enterprise#48283
Original PR description
When the side panel of a pivot/list is opened while the side panel of another pivot/listis already open, the datasource of the first pivot/listis used instead of the datasource of the second pivot/list. This can lead to tracebacks, or to wrong data being displayed. Task: [3463289](https://www.odoo.com/web#id=3463289&menu_id=4720&cids=1&action=333&active_id=2328&model=project.task&view_type=form) Forward-Port-Of: odoo/enterprise#48283