Monday, May 23, 2022
8 changes · master
Enhancements to existing features
The document inspector no longer lets users create new owners or workspaces directly from those fields. This keeps document ownership and workspace selection controlled through the proper setup flows, reducing accidental or inconsistent records.
Original PR description
PURPOSE Disable quick create on owner_id and folder_id from inspector. SPECIFICATION Current: User is able to quick create user_id and folder_id from inspector. To be: Disable quick create on owner_id and folder_id from inspector. Task Id: 2629462
This update adjusts internal tests for the Documents activity menu so they remain compatible with an upcoming change to the Discuss app environment. It helps ensure future platform updates can be introduced smoothly without disrupting validation of the Documents systray menu.
Original PR description
This PR prepares the ground for the one introducing the new environment in the discuss app. Indeed, the start helper won't be able to handle widget anymore. To solve this issues, we're now adding the activityMenu widget to the systrayMenu.Items array, this will be mapped by the createWebClient helper to component and added to the new systray item registry. task-2582313 community: https://github.com/odoo/odoo/pull/91953
Resolved issues and error corrections
Error messages shown when a spreadsheet link cannot be retrieved are now properly translated. This gives users clearer, localized feedback and improves consistency for international teams using Documents spreadsheets.
Original PR description
Task 2860257
Miscellaneous changes
**Before this commit:** In documents, when you upload a document, if you want to create new record like contact, owner or workspace in the right panel, you write it and click on "create", but the field is not loaded and you don't find it in the list also. **After this commit:** Records are created after clicking on create, added to list and will be selected. **Task**-2487738 Forward-Port-Of: odoo/enterprise#18764
Original PR description
**Before this commit:** In documents, when you upload a document, if you want to create new record like contact, owner or workspace in the right panel, you write it and click on "create", but the field is not loaded and you don't find it in the list also. **After this commit:** Records are created after clicking on create, added to list and will be selected. **Task**-2487738 Forward-Port-Of: odoo/enterprise#18764
Follow up of https://github.com/odoo/enterprise/pull/25785 The AttachmentViewer element can sometimes be undefined Steps to reproduce: - Create an invoice fro a client C, confirm and register the payment - Create a matching bank statement - Confirm, reconcile and validate - Go to the accounting dashboard - Click on the matching bank statement - Go back to the dashboard - Click again on the same statement -> A traceback appears opw-2857051 Forward-Port-Of: odoo/enterprise#27643
Original PR description
Follow up of https://github.com/odoo/enterprise/pull/25785 The AttachmentViewer element can sometimes be undefined Steps to reproduce: - Create an invoice fro a client C, confirm and register the payment - Create a matching bank statement - Confirm, reconcile and validate - Go to the accounting dashboard - Click on the matching bank statement - Go back to the dashboard - Click again on the same statement -> A traceback appears opw-2857051 Forward-Port-Of: odoo/enterprise#27643
#### The issue At the moment, the tests in test_edi_iap.py, test_edi_digiflow.py and test_edi_sunat.py, fail because of an error response from the OSE. If we solve this first error, we get a second (unrelated) error response. This PR aims to fix both, so it makes sense to consider them one at a time below. #### First error ``` 3014|El codigo de leyenda no debe repetirse en el comprobante. - Detalle: xxx.xxx.xxx ticket : 20220000000000101174262 error: Leyenda : 1000: 3014 (nodo: 'cbc:N
Original PR description
#### The issue At the moment, the tests in test_edi_iap.py, test_edi_digiflow.py and test_edi_sunat.py, fail because of an error response from the OSE. If we solve this first error, we get a second…
#### The issue At the moment, the tests in test_edi_iap.py, test_edi_digiflow.py and test_edi_sunat.py, fail because of an error response from the OSE. If we solve this first error, we get a second (unrelated) error response. This PR aims to fix both, so it makes sense to consider them one at a time below. #### First error ``` 3014|El codigo de leyenda no debe repetirse en el comprobante. - Detalle: xxx.xxx.xxx ticket : 20220000000000101174262 error: Leyenda : 1000: 3014 (nodo: 'cbc:Note/languageLocaleID' valor: "1000") ``` This error says that there are two `<cbc:Note>` nodes in the XML which have the `languageLocaleID` attribute set to the same value. If we inspect the generated XML, we find the following: ``` <cbc:Note languageLocaleID="1000">Monto en letras</cbc:Note> <cbc:Note languageLocaleID="1000">NUEVE MIL CUATROCIENTOS CUARENTA Y 00/100 GOLD</cbc:Note> ``` Those two nodes with `languageLocaleID="1000"` seem to provoke the error. The first `<cbc:Note>` node with `languageLocaleID="1000"` is generated because we set the `l10n_pe_edi_legend` field to `1000` in the test invoice. The second `<cbc:Note>` node with `languageLocaleID="1000"` is now generated on every invoice because of commit https://github.com/odoo/enterprise/commit/567f476ae7d82bdda84c84f8b73cd17775e24df7 That commit might have broken things and needs further investigation. To restore the UTs to a passing state, a quick fix (which I propose in this PR) would be to not set the `l10n_pe_edi_legend` field in the test invoice. In this way, there will be only one `<cbc:Note>` node with `languageLocaleID="1000"` in the XML. #### Second error If we fix this first error, we get another error response from the OSE: ``` 2108|Presentacion fuera de fecha Detalle: ' ticket: 20220000000000101176322 error: Documento fuera de fecha[2017-01-01] ``` This means that the invoice is too old. Indeed, the invoice date is 01 Jan 2017. This PR proposes to fix this by changing the invoice date to the current day in the invoices which we send to the OSE. Forward-Port-Of: odoo/enterprise#27487 Forward-Port-Of: odoo/enterprise#23465
This PR aims to add more information on social media disconnection in the logs. OPW-2643535 Forward-Port-Of: odoo/enterprise#27505 Forward-Port-Of: odoo/enterprise#27331
Original PR description
This PR aims to add more information on social media disconnection in the logs. OPW-2643535 Forward-Port-Of: odoo/enterprise#27505 Forward-Port-Of: odoo/enterprise#27331
community PR: https://github.com/odoo/odoo/pull/88803 Forward-Port-Of: odoo/enterprise#27430 Forward-Port-Of: odoo/enterprise#26831
Original PR description
community PR: https://github.com/odoo/odoo/pull/88803 Forward-Port-Of: odoo/enterprise#27430 Forward-Port-Of: odoo/enterprise#26831