Wednesday, September 18, 2024
27 changes · master
Enhancements to existing features
The project module’s automated tests were updated to use a newer testing framework and no longer rely on older mail testing helpers. This is an internal quality improvement that helps keep testing infrastructure current without changing user-facing project features.
Original PR description
Purpose of this PR: To convert QUnit tests which depends on mail/test_utils to hoot. part of: 3818666
Advanced configuration menu items for tax units, horizontal report groups, and 1099 boxes are now shown only in debug mode. This keeps everyday menus simpler while still allowing administrators and support teams to access specialized setup options when needed.
Original PR description
This Pr will put different menu item in debug mode: - Tax unit - Horizontal group - 1099 boxes Task: 4192465
Appointment and website appointment dashboard cards were simplified to use newer Odoo interface building blocks. This makes the screens easier to maintain and keeps the appointment experience aligned with current platform standards, with minimal change for end users.
Original PR description
In this commit we have simplified the kanban arch for the appointment and it's related module dashboard. The goal is to simplify them, make them easier to read and use bootstrap utility classnames. - Previously, we used kanban-box, but now we are using kanban-card instead. - Deprecated oe_kanban_global_click and oe_kanban_global_click_edit. - More use of <field/> tags - Removed the oe_kanban_colorpicker class and replaced it with the kanban_color_picker widget. - Changed type='edit' to type='open' to open records. since version 16, records always open in edit mode by default. - kanban_image from rendering context, is deprecated so we use <field name="..." widget="image"/> instead - kanban_color, kanban_getcolor and kanban_getcolorname are deprecated use new attribute highlight_color="color_field_name" on root node Task-3992107
The Quality Control dashboard layout was cleaned up to use newer Odoo interface patterns. This makes the dashboard easier to maintain and helps keep the user experience consistent with current Odoo standards.
Original PR description
In this commit we have simplified the kanban arch for the quality_control module dashboard. the goal is to simplify them, make them easier to read and use bootstrap utility classnames. - Previously, we used kanban-box, but now we are using kanban-card instead. - Deprecated oe_kanban_global_click and oe_kanban_global_click_edit. - More use of `<field/>` tags - Removed the oe_kanban_colorpicker class and replaced it with the kanban_color_picker widget. - Changed type='edit' to type='open' to open records. since version 16, records always open in edit mode by default. - kanban_image from rendering context, is deprecated so we use `<field name=... widget=image/>` instead - kanban_color, kanban_getcolor and kanban_getcolorname are deprecated use new attribute highlight_color=color_field_name on root node Task-3992107
The POS preparation and order tracking dashboard layouts were cleaned up to use newer interface building blocks. This makes the screens easier to maintain and keeps them aligned with current Odoo standards, with little expected change for everyday users.
Original PR description
In this commit we have simplified the kanban arch for the pos_preparation_display module dashboard. the goal is to simplify them, make them easier to read and use bootstrap utility classnames. - Previously, we used kanban-box, but now we are using kanban-card instead. - Deprecated oe_kanban_global_click and oe_kanban_global_click_edit. - More use of `<field/>` tags - Removed the oe_kanban_colorpicker class and replaced it with the kanban_color_picker widget. - Changed type='edit' to type='open' to open records. since version 16, records always open in edit mode by default. - kanban_image from rendering context, is deprecated so we use `<field name=... widget=image/>` instead - kanban_color, kanban_getcolor and kanban_getcolorname are deprecated use new attribute highlight_color=color_field_name on root node Task-3992107
Message reactions are now shown from oldest to newest when loaded from the server. This makes conversation history easier to follow and keeps reaction displays consistent for users.
Original PR description
This commit ensures that message reactions are displayed in chronological order, from the earliest to the most recent when getting the data from the server. https://github.com/odoo/odoo/pull/180198
Resolved issues and error corrections
Spreadsheet list side panels now wait for required list field information before rendering. This prevents missing or incomplete list details after updates, keeping spreadsheet views reliable for users.
Original PR description
This commit is the Enterprise counter-part of a community commit. Let me explain what's going on: Before the community commit, as soon as a list update was dispatched, it would trigger a new evaluation which would load the new (unloaded) datasource. The meta data (fields) being cached by the ServerData, fetching the fields was actually synchronous. Hence, at the next rendering, right after the command dispatch, the fields were already available. Now, with the community commit, there's a micro-tick delay before loading the new data source. The next rendering, being first in the event queue, renders the component before the cache was even queried. Task: 4134859
Miscellaneous changes
Problem was we try to get partner from `order.partner` instead of `order.partner_id` Steps to reproduce: - Install l10n_cl - Select the CL Company - Go to POS - Select products - Change the client to Blanco Martin & Asociados EIRL (has all the information for l10n_cl) - Click on "payment" - Select any payment method - Select the option "Invoice" - Validate - Console error opw-4180894 Forward-Port-Of: odoo/enterprise#70239
Original PR description
Problem was we try to get partner from `order.partner` instead of `order.partner_id` Steps to reproduce: - Install l10n_cl - Select the CL Company - Go to POS - Select products - Change the client to Blanco Martin & Asociados EIRL (has all the information for l10n_cl) - Click on "payment" - Select any payment method - Select the option "Invoice" - Validate - Console error opw-4180894 Forward-Port-Of: odoo/enterprise#70239
Manufacturing planning no longer blocks certain batch size settings during setup. If the batch size option is disabled or not set to a positive value, it is simply ignored when replenishment is run, reducing unnecessary configuration errors.
Original PR description
We do not impose restrictions on how batch_size is configured. It will simply be ignored if it's not enabled or is not something above zero.
The point of sale preparation display now loads the required sound resources for its notifications. This ensures staff can hear the expected alerts when orders or updates need attention.
Original PR description
In commit 45f568f8f8252913ed7cba00fe3da6f48edb7b26 we replaced the pos sound service with the mail sound service. In this commit we ensure that the correct assets are loaded in `pos_preparation_display`. The assets that handled the specific notifications used in pos were not loaded.
The EU OSS Reports module now avoids loading its test components during normal use. This prevents unnecessary internal test code from being imported in production, reducing the risk of avoidable startup or installation issues.
Original PR description
Test import was prevented by odoo/odoo#177671. Importing tests is only done when tests are enabled. This one was missed because it was merged concurrently.
The automated check for the account merge wizard has been moved into the Accountant app, where it can access the Chart of Accounts screen it needs. This helps ensure the test runs reliably and reduces false failures without changing day-to-day user behavior.
Original PR description
The tour needs access to the Chart of Accounts list view to function, which is available only in `accountant`, so we move it there from `account`. Community PR: https://github.com/odoo/odoo/pull/180614 runbot-98348
The Documents Kanban view has been corrected after a prior change caused visual layout issues. Users should now see better aligned footers, properly shortened text, correctly placed fields, and more consistent spacing when managing documents and accounting documents.
Original PR description
This commit fixes the broken Kanban view of documents, which occurred due to merging of this pr https://github.com/odoo/enterprise/pull/69250 . The following problems were addressed: - Misalignment of the footer - Text not being properly truncated - Incorrect positioning of a field using x-path - Inadequate padding Task-3992107
Several app onboarding walkthroughs were not starting because they were missing from setup files or absent entirely. This fix restores those tours so users can receive the intended guided introduction when using affected apps.
Original PR description
Some of the onboarding tour was missing in the manifest and some were not existing. They have been added. TASK-ID: 4184140
A typo was corrected in the Loans screen. This improves clarity for users and helps keep the interface polished without changing any business process or functionality.
Financial reports now avoid showing the word “False” where an account code is unavailable for the active company. This keeps report labels clearer and more professional by showing only the account name in those cases.
Original PR description
Since sharing accounts between companies in https://github.com/odoo/odoo/pull/171079, an account's code may be False from the perspective of the active company. In that case, we want only the account name to appear in reports. A fix was already done for `account.display_name` in https://github.com/odoo/odoo/pull/177943. This commit does a similar fix for reports which use code + name rather than display_name. taskid: none
### Issue: The word 'Review' being used in 2 different frontend locations (it's also used in portal_rating) and the frontend can only use the last translation that it loads. Thus, the 'Review' is translated as 'Avis', which is wrong. ### After this PR: Renamed 'Review' label to 'Review Booking'. Task-4164125 Forward-Port-Of: odoo/enterprise#69404
Original PR description
### Issue: The word 'Review' being used in 2 different frontend locations (it's also used in portal_rating) and the frontend can only use the last translation that it loads. Thus, the 'Review' is translated as 'Avis', which is wrong. ### After this PR: Renamed 'Review' label to 'Review Booking'. Task-4164125 Forward-Port-Of: odoo/enterprise#69404
Steps to reproduce ================== - In the accounting app, go to 'Journal Entries'. - Create a new entry. - Set the 'reference' field to 'Receipt'. - Add 2 accounts in Journal Items. - For the 1st account, select 'Account Receivable' (e.g., 121000 Account Receivable). - Set the Partner field to "0h3n-abcdefg@yahoo.example.com" and the label field to "Online transfer reced agst INV-00171, Dt:01.08.2024". - For the 2nd account, set it to any other type, such as "101401 Bank". - Add
Original PR description
Steps to reproduce ================== - In the accounting app, go to 'Journal Entries'. - Create a new entry. - Set the 'reference' field to 'Receipt'. - Add 2 accounts in Journal Items. - For the…
Steps to reproduce ================== - In the accounting app, go to 'Journal Entries'. - Create a new entry. - Set the 'reference' field to 'Receipt'. - Add 2 accounts in Journal Items. - For the 1st account, select 'Account Receivable' (e.g., 121000 Account Receivable). - Set the Partner field to "0h3n-abcdefg@yahoo.example.com" and the label field to "Online transfer reced agst INV-00171, Dt:01.08.2024". - For the 2nd account, set it to any other type, such as "101401 Bank". - Add a credit amount in the 'Account Receivable' and the same amount in the 2nd account. - Save and post the transaction. - Navigate to the general ledger. - Ensure you expand the list of this newly created account move under the 121000 Account Receivable to observe overlapping text. - Click on 'PDF' and print the report. - Notice the overlapping text.  Cause of the issue ================== The o_overflow_value class is only applied when the cell value length is longer than 65 chars Solution =======  Here are the differences, only the following lines are pushed down  opw-4130917 Forward-Port-Of: odoo/enterprise#70141
Before this PR, trying to print an IoT linked report from PoS would result in an error, as the JS file for websockets was not loaded. This PR fixes the issue by including the file. Related community PR: https://github.com/odoo/odoo/pull/180063 Forward-Port-Of: odoo/enterprise#69953
Original PR description
Before this PR, trying to print an IoT linked report from PoS would result in an error, as the JS file for websockets was not loaded. This PR fixes the issue by including the file. Related community PR: https://github.com/odoo/odoo/pull/180063 Forward-Port-Of: odoo/enterprise#69953
Steps to reproduce (on IOS): ------------------- With Safari browser: - Install `Meeting Rooms` app - Go to Meeting Rooms -> Rooms and open any room - Copy the `Room Booking URL` and open it in a new tab - Click on the menu, then on `Add to Home Screen` - Open the room booking from the home screen Issue: ------ The URL and browser buttons are visible at the top of the screen. Solution: --------- Add the meta tags `mobile-web-app-capable` and `apple-mobile-web-app-capable`
Original PR description
Steps to reproduce (on IOS): ------------------- With Safari browser: - Install `Meeting Rooms` app - Go to Meeting Rooms -> Rooms and open any room - Copy the `Room Booking URL` and open it in a new tab - Click on the menu, then on `Add to Home Screen` - Open the room booking from the home screen Issue: ------ The URL and browser buttons are visible at the top of the screen. Solution: --------- Add the meta tags `mobile-web-app-capable` and `apple-mobile-web-app-capable` to the room template. opw-3639196 Forward-Port-Of: odoo/enterprise#67944
**Steps to reproduce:** - Make studio view of account journal entry form view (account.journal.form). - Find the node that exists on xpath "//field[@name='partner_id'][@widget='res_partner_many2one']" and remove the invisible attribute from it. - Upgrade database to saas-17.4 **Traceback:** ``` File "/home/odoo/src/enterprise/saas-17.4/account_invoice_extract/models/account_invoice.py", line 900, in _get_view node.set('invisible', f"{placeholder_condition} or ({node.attrib.pop(
Original PR description
**Steps to reproduce:**
- Make studio view of account journal entry form view (account.journal.form).
- Find the node that exists on xpath "//field[@name='partner_id'][@widget='res_partner_many2one']"
and remove the invisible attribute from it.
- Upgrade database to saas-17.4
**Traceback:**
```
File "/home/odoo/src/enterprise/saas-17.4/account_invoice_extract/models/account_invoice.py", line 900, in _get_view
node.set('invisible', f"{placeholder_condition} or ({node.attrib.pop('invisible')})")
File "src/lxml/etree.pyx," line 2464, in lxml.etree._Attrib.pop
KeyError: 'invisible'
```
**Solution:**
- This occurs because when checking the invisible attribute of a node, we are not checking if an invisible attribute exists or not, so added a condition for checking.
Forward-Port-Of: odoo/enterprise#69891Versions -------- - saas-17.4+ Steps ----- 1. Set document layout to DIN5008; 2. create an invoice; 3. print invoice. Issue ----- Dates are formatted as YYYY-MM-DD, regardless of date formatting preferences. Cause ----- Commit 7f63dab38a6 moved DIN5008 formatting logic from Python to XML. In doing so, dates were no longer getting formatted. Solution -------- Add the `date` widget to the XML fields to format them accordingly. opw-4172138 Community PR: https://github.
Original PR description
Versions -------- - saas-17.4+ Steps ----- 1. Set document layout to DIN5008; 2. create an invoice; 3. print invoice. Issue ----- Dates are formatted as YYYY-MM-DD, regardless of date formatting preferences. Cause ----- Commit 7f63dab38a6 moved DIN5008 formatting logic from Python to XML. In doing so, dates were no longer getting formatted. Solution -------- Add the `date` widget to the XML fields to format them accordingly. opw-4172138 Community PR: https://github.com/odoo/odoo/pull/180415 Forward-Port-Of: odoo/enterprise#70142
Sequences of optional employer insurance payments should come before gross Forward-Port-Of: odoo/enterprise#70081 Forward-Port-Of: odoo/enterprise#70070
Original PR description
Sequences of optional employer insurance payments should come before gross Forward-Port-Of: odoo/enterprise#70081 Forward-Port-Of: odoo/enterprise#70070
Since the fiscal position is added in data with the xml, the others companies than the current ones don't have it. So this commit will allow: - When installing the Avatax modules, create the fiscal position in all US companies at the same time - When creating a new US company with the Avatax module installed, setup the fiscal position in the new company at the same time task: 4100725 Forward-Port-Of: odoo/enterprise#69204
Original PR description
Since the fiscal position is added in data with the xml, the others companies than the current ones don't have it. So this commit will allow: - When installing the Avatax modules, create the fiscal position in all US companies at the same time - When creating a new US company with the Avatax module installed, setup the fiscal position in the new company at the same time task: 4100725 Forward-Port-Of: odoo/enterprise#69204
In this PR, we adapt the code of the belgian blackbox module to be compliant with the law. A summary of the changes can be found below: Added the global discount option in certified pos Added fields to the log of orders Correct loging of orders Remove the option to download the receipt Automatic work in/out for the employees Remove the possibility to refund work in/out Precision made to the sales report Added some restriction on the settings of a pos_config Remove the possibility o
Original PR description
In this PR, we adapt the code of the belgian blackbox module to be compliant with the law. A summary of the changes can be found below: Added the global discount option in certified pos Added fields to the log of orders Correct loging of orders Remove the option to download the receipt Automatic work in/out for the employees Remove the possibility to refund work in/out Precision made to the sales report Added some restriction on the settings of a pos_config Remove the possibility of multi-company when using a certified pos Corrected some behavior that were not meeting requirements (split,...) Forward-Port-Of: odoo/enterprise#69826