Daily updates from Odoo
Thursday, July 11, 2024
15 changes · master
Enhancements to existing features
The enterprise web client test suite has been moved to a newer testing approach. This improves maintainability and helps ensure future web interface changes can be validated more reliably without changing user-facing behavior.
Original PR description
task-4028356
This change adjusts the expected processing behavior for deleting accounting entries after related sales expense updates. It supports upcoming internal changes that may require a small number of extra database operations without affecting user workflows.
Original PR description
In the refactoring of sale_expense, we would end up with two more queries in the account.move.unlink() method, as we potentially editing sale_expense_lines quantities and clearing expenses linked task-3458826
This update modernizes the website Twitter wall code by removing its reliance on an older JavaScript library. It also fixes an error that could occur when loading the Twitter wall, improving reliability for website visitors.
Original PR description
This PR aim to convert all jQuery code into Vanilla JS in website_twitter_wall, this way we will reduce the dependency of jQuery in Odoo codebase. task-3930744
The website event Twitter wall has been updated to use modern browser technology instead of an older shared library. This helps simplify maintenance and supports Odoo's broader effort to streamline its website codebase, with no expected change for end users.
Original PR description
This PR aim to convert all jQuery code into Vanilla JS in website_event_twitter_wall, this way we will reduce the dependency of jQuery in Odoo codebase. task-3770362
Code cleanup and technical improvements
This update adds internal labels to Mexican invoice, payment, and delivery slip report sections. It does not change what customers see, but it makes these reports easier for teams to maintain and extend in the future.
Original PR description
Added names to tags inside report_invoice.xml and report_payment.xml for easier scalability in the future
This update streamlines how guest, attachment, notification, and link preview information is sent to the web client, reducing repeated data transfer and browser-side processing. It should make messaging-related screens more efficient without changing visible business workflows.
Original PR description
This will reduce data transferred to the client and processed in JS when the same guest, attachment or notification was appearing multiple times in result. This also makes more clear what is transferred by avoiding nested values. This is part 6, focusing on guest, attachment, notification, link preview. Formatting code eventually becomes simpler too, by always adding data to the store rather than updating pre-existing dict manually. Part of task-3605717 https://github.com/odoo/odoo/pull/172448
Miscellaneous changes
Tag updates were causing reload of the domain, while updating tag counts, With this commit all contextual values are preserved during tag updates [Reproduce] - Install documents,contacts- Open a contact - Open its documents - Go to "internal" - Upload a document - Add a tag to it (or remove it) - BUG: all documents visible (instead of documents for that particular client) opw-3967799 Forward-Port-Of: odoo/enterprise#65299
Original PR description
Tag updates were causing reload of the domain, while updating tag counts, With this commit all contextual values are preserved during tag updates [Reproduce] - Install documents,contacts- Open a contact - Open its documents - Go to "internal" - Upload a document - Add a tag to it (or remove it) - BUG: all documents visible (instead of documents for that particular client) opw-3967799 Forward-Port-Of: odoo/enterprise#65299
To reproduce: - Create a new db with demo data and install `sale_timesheet` module - Then as a second step, install `documents_project` The installation will crash with: ``` psycopg2.errors.NotNullViolation: null value in column "folder_id" of relation "documents_document" violates not-null constraint ``` When using `search` with no corresponding field, `convert_xml()` will only consider the first value, and in our case because of the ordering of project model, we're not going to set
Original PR description
To reproduce: - Create a new db with demo data and install `sale_timesheet` module - Then as a second step, install `documents_project` The installation will crash with: ``` psycopg2.errors.NotNullViolation: null value in column "folder_id" of relation "documents_document" violates not-null constraint ``` When using `search` with no corresponding field, `convert_xml()` will only consider the first value, and in our case because of the ordering of project model, we're not going to setup the document folder on project which is not `project.project_project_1`. This commit force creating documents folders for all projects with `use_documents` option set. Forward-Port-Of: odoo/enterprise#65964
Add shortcut keys to the recon model buttons in the reco widget. The keys are SHIFT+Number (1 to 5 for the 5 visible buttons) Task-4024471 Forward-Port-Of: odoo/enterprise#66066
Original PR description
Add shortcut keys to the recon model buttons in the reco widget. The keys are SHIFT+Number (1 to 5 for the 5 visible buttons) Task-4024471 Forward-Port-Of: odoo/enterprise#66066
**Purpose this PR:** This commit converts the all the qunit testcases of the crm_enterprise module to hoot. Part of task:[3818666](https://www.odoo.com/odoo/project/1519/tasks/3818666?cids=2) Forward-Port-Of: odoo/enterprise#62256
Original PR description
**Purpose this PR:** This commit converts the all the qunit testcases of the crm_enterprise module to hoot. Part of task:[3818666](https://www.odoo.com/odoo/project/1519/tasks/3818666?cids=2) Forward-Port-Of: odoo/enterprise#62256
To reproduce the bug, follow these steps: - Download the document present in ticket 3991731. - Upload it to the sign app. - Try to drag and drop the sign box to the bottom. You will find that the drag and drop functionality in general is erratic. This is due to the coordinates being incorrect, sometimes even negative, since the method used to calculate the height and width of the PDF view is flawed. I used the getBoundingClientRect method (the same method used to get the sign box coordi
Original PR description
To reproduce the bug, follow these steps: - Download the document present in ticket 3991731. - Upload it to the sign app. - Try to drag and drop the sign box to the bottom. You will find that the drag and drop functionality in general is erratic. This is due to the coordinates being incorrect, sometimes even negative, since the method used to calculate the height and width of the PDF view is flawed. I used the getBoundingClientRect method (the same method used to get the sign box coordinates) to fix this issue. opw-3991731 Forward-Port-Of: odoo/enterprise#65020
Before this commit: -Checkboxes in studio were not clearly visible in dark mode due to the border color being too similar to the background. -o_kanban_group had a white background that looked out of place in dark mode. After this commit: -Color of the border of the checkboxes is inverted in dark mode for better visibility -Background color of o_kanban_group is changed to enhance its appearance in dark mode. Task-3920491 Forward-Port-Of: odoo/enterprise#63040
Original PR description
Before this commit: -Checkboxes in studio were not clearly visible in dark mode due to the border color being too similar to the background. -o_kanban_group had a white background that looked out of place in dark mode. After this commit: -Color of the border of the checkboxes is inverted in dark mode for better visibility -Background color of o_kanban_group is changed to enhance its appearance in dark mode. Task-3920491 Forward-Port-Of: odoo/enterprise#63040
With this PR, the actions to open all journal items have been removed from all GSTR sections of the GST return Period. This change helps streamline the GST Return by eliminating unnecessary actions, ensuring a more focused and efficient reporting process. **task**-3908555 Forward-Port-Of: odoo/enterprise#66406 Forward-Port-Of: odoo/enterprise#64442
Original PR description
With this PR, the actions to open all journal items have been removed from all GSTR sections of the GST return Period. This change helps streamline the GST Return by eliminating unnecessary actions, ensuring a more focused and efficient reporting process. **task**-3908555 Forward-Port-Of: odoo/enterprise#66406 Forward-Port-Of: odoo/enterprise#64442
Related ticket: 4000939 Forward-Port-Of: odoo/enterprise#66407
Original PR description
Related ticket: 4000939 Forward-Port-Of: odoo/enterprise#66407
Since the audit trail is mandatory in Germany, we cannot remove moves or any documents related. We only need to remove the moves linked to the company of the tour. We also have more queries because we now need to check if the move is part of the audit trail before unlinking. Forward-Port-Of: odoo/enterprise#66387
Original PR description
Since the audit trail is mandatory in Germany, we cannot remove moves or any documents related. We only need to remove the moves linked to the company of the tour. We also have more queries because we now need to check if the move is part of the audit trail before unlinking. Forward-Port-Of: odoo/enterprise#66387