Daily updates from Odoo
Thursday, November 14, 2024
8 changes · master
Enhancements to existing features
This update adjusts how Odoo retrieves related records across several accounting, approvals, data cleaning, and helpdesk features. The change supports ongoing platform compatibility work and should help keep these workflows reliable without changing day-to-day user behavior.
Original PR description
odoo/odoo#185630 task-4139293
The mobile user menu tests were moved to a newer testing approach. This helps maintain confidence in the mobile interface while making future updates easier for the development team.
Original PR description
task-4028335
This update standardizes how session information is accessed, making it behave more like a regular dictionary. It affects appointment-related flows and helps keep future development more predictable while preserving key frequently used shortcuts.
Original PR description
The session must be used like a "classic" dictionnary. Only very frequently used keys will be accessible via a property. task-3305304
Resolved issues and error corrections
The PDF viewer used for signing and document previews now hides built-in buttons that were unnecessary or could cause confusion. This creates a more consistent, focused experience when users review or sign documents.
Original PR description
The native viewer of PDF.js adds some buttons that we don't want as useless or problematic. This commit aims to uniformize add remove these buttons. task-4286512
Code cleanup and technical improvements
This change restores the previous internal model naming approach after a related typing initiative was canceled. It helps keep the system aligned with established Odoo conventions without introducing functional changes for end users.
Original PR description
Following internal discussions, the python typing and inheritance task is canceled. The use of the class name instead of '_name' was done to allow notations such as `partner_id = fields.Many2one[base.ResParter](string='Partner')`. Since this notation is canceled, we put `_name` back (although the class name is sufficient). Partial revert: https://github.com/odoo/enterprise/pull/69762 https://github.com/odoo/odoo/pull/178200
Miscellaneous changes
**Before this PR:** Dragging and dropping documents from the TRASH to another folder will result in a traceback or user error. Dragging and dropping documents within the TRASH will trigger an unusual notification. **After this PR:** Disable dragging in the TRASH folder and inform the user with a valid reason. Task-4231709 Forward-Port-Of: odoo/enterprise#71633
Original PR description
**Before this PR:** Dragging and dropping documents from the TRASH to another folder will result in a traceback or user error. Dragging and dropping documents within the TRASH will trigger an unusual notification. **After this PR:** Disable dragging in the TRASH folder and inform the user with a valid reason. Task-4231709 Forward-Port-Of: odoo/enterprise#71633
We have 2 errors in the generation of report "Certificado de Retencion de la fuente" General setup: - With a CO Company - Open Vendor Journal and disable the "Electronic Invoice: DIAN 2.1" check - Create a Vendor Bill with a VAT 19% Tax and "4% RteFte S L", add bill date and confirm **Error 1** Go to Reports -> Certificado de Retencion de la fuente Error will raise ``` psycopg2.errors.UndefinedFunction: operator does not exist: text ->> unknown LINE 14: ...R || ' ' || "account_mo
Original PR description
We have 2 errors in the generation of report "Certificado de Retencion de la fuente" General setup: - With a CO Company - Open Vendor Journal and disable the "Electronic Invoice: DIAN 2.1" check -…
We have 2 errors in the generation of report "Certificado de Retencion de la fuente"
General setup:
- With a CO Company
- Open Vendor Journal and disable the "Electronic Invoice: DIAN 2.1" check
- Create a Vendor Bill with a VAT 19% Tax and "4% RteFte S L", add bill date and confirm
**Error 1**
Go to Reports -> Certificado de Retencion de la fuente
Error will raise
```
psycopg2.errors.UndefinedFunction: operator does not exist: text ->> unknown
LINE 14: ...R || ' ' || "account_move_line__account_id"."name"->>'en_US'...
^
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
```
**Error 2**
Enable and activate language "Spanish (Latin America)"
Go to Reports -> Certificado de Retencion de la fuente
Expand the partner for which the vendor was crated, click on PDF
Error will raise
```
psycopg2.errors.UndefinedTable: missing FROM-clause entry for table "aa"
LINE 21: GROUP BY rp.id , aa.id
```
opw-4284787
Forward-Port-Of: odoo/enterprise#72918Steps to reproduce: - Insert a non-odoo pivot - Add a formula with `=PIVOT.VALUE` or `PIVOT.HEADER` - Try to autofill => Traceback This commit fixes the issue by disabling the autofill for non-odoo pivots, as the autofill is not supported for them. Task: 4277518 Forward-Port-Of: odoo/enterprise#72564
Original PR description
Steps to reproduce: - Insert a non-odoo pivot - Add a formula with `=PIVOT.VALUE` or `PIVOT.HEADER` - Try to autofill => Traceback This commit fixes the issue by disabling the autofill for non-odoo pivots, as the autofill is not supported for them. Task: 4277518 Forward-Port-Of: odoo/enterprise#72564