Wednesday, July 19, 2023
15 changes · master
Enhancements to existing features
Enterprise visuals were adjusted to better align with the shared product interface while keeping plan-specific styling where useful. The burger menu naming was standardized to avoid build issues, and button and divider colors were refined so users can more clearly recognize the Enterprise experience.
Original PR description
This PR follows the tutorial of the R&D UX/UI Requires : - https://github.com/odoo/odoo/pull/115690 task-3234820
Resolved issues and error corrections
Knowledge article categories now use a missing database index, helping searches, filters, grouping, and related cleanup actions run more efficiently. This should improve performance in common Knowledge views without changing how users work.
Original PR description
Add missing index on `category` of `knowledge.article`, used in many filters of the search view and the group by `category`. Also used in a few methods like `_check_sidebar_display` and during unlinking of partners. task-3420528
Code cleanup and technical improvements
This update prepares Odoo to use one standard translation method instead of two, reducing confusion for future maintenance. It also adjusts automated guided tours and tests so translated text is only loaded when ready, helping keep validation stable across many business modules.
Original PR description
The goal of this commit is to prepare ground to remove
lazytranslate function _lt() and keep only _t()
for a better understanding of the use of the translation function.
In this commit,
- the translate function _t() has been updated to return the translation
if they are loaded. If not, it throws an error.
- the lazytranslate function _lt() returns _t() function.
**Corollaries :**
Steps in test tours are now a function that returns an array of steps
to avoid any interpolation of _t in this ones before translations has
been loaded.
**Example :**
```
registry.category("web_tour.tours").add("example", {
test: true,
steps: () => [
{...},
{...},
],
});
```
task-3292454
Community: https://github.com/odoo/odoo/pull/124157Miscellaneous changes
Steps to reproduce: - create a product with an operation on its BOM - create a quality point with: -- operation: manufacturing -- workoder operation: the one set on the product -- control per : product(15.0) / quauntity(16.0) - create an MO for the created product - an extra quality check is created on the MO Bug: the domain for lot type was missing the filter on operation type Fix: apply the same filter for all measure_on types opw-3337069 Forward-Port-Of: odoo/enterprise#4429
Original PR description
Steps to reproduce: - create a product with an operation on its BOM - create a quality point with: -- operation: manufacturing -- workoder operation: the one set on the product -- control per : product(15.0) / quauntity(16.0) - create an MO for the created product - an extra quality check is created on the MO Bug: the domain for lot type was missing the filter on operation type Fix: apply the same filter for all measure_on types opw-3337069 Forward-Port-Of: odoo/enterprise#44295 Forward-Port-Of: odoo/enterprise#42900
OCR only should update the currency when it is adding invoice line and there is no already added invoice lines. When there is an invoice line already, the currency considered to be correct. Forward-Port-Of: odoo/enterprise#44276 Forward-Port-Of: odoo/enterprise#43743
Original PR description
OCR only should update the currency when it is adding invoice line and there is no already added invoice lines. When there is an invoice line already, the currency considered to be correct. Forward-Port-Of: odoo/enterprise#44276 Forward-Port-Of: odoo/enterprise#43743
The domain validation done at confirmation in the domain selector dialog has been reintroduced in https://github.com/odoo/odoo/pull/128709/commits/d3eb3fe58ddd677a3f63b097a3390afe887f4349 by calling a new route /web/domain/validate. This makes necessary to adapt some pivot/list tests in documents_spreadsheet. Forward-Port-Of: odoo/enterprise#44255
Original PR description
The domain validation done at confirmation in the domain selector dialog has been reintroduced in https://github.com/odoo/odoo/pull/128709/commits/d3eb3fe58ddd677a3f63b097a3390afe887f4349 by calling a new route /web/domain/validate. This makes necessary to adapt some pivot/list tests in documents_spreadsheet. Forward-Port-Of: odoo/enterprise#44255
Improve filtered to only cancel uncanceled sub. With have a lot of old subscritpion invali that have been cancelled and since we try to write on it, it raises a constraints. Maysbe _action_cancel could also be smarter and filter itself the already canceled sub. Forward-Port-Of: odoo/enterprise#44227 Forward-Port-Of: odoo/enterprise#43232
Original PR description
Improve filtered to only cancel uncanceled sub. With have a lot of old subscritpion invali that have been cancelled and since we try to write on it, it raises a constraints. Maysbe _action_cancel could also be smarter and filter itself the already canceled sub. Forward-Port-Of: odoo/enterprise#44227 Forward-Port-Of: odoo/enterprise#43232
This solves a bug that allows to generate Delivery Guides in returns when "DTE Status in the SII" has the value "Pending to be Sent" or "Rejected" After the PR: The warning msg saying that a sequence is not there does not appear in state other than done. Forward-Port-Of: odoo/enterprise#44025 Forward-Port-Of: odoo/enterprise#40340
Original PR description
This solves a bug that allows to generate Delivery Guides in returns when "DTE Status in the SII" has the value "Pending to be Sent" or "Rejected" After the PR: The warning msg saying that a sequence is not there does not appear in state other than done. Forward-Port-Of: odoo/enterprise#44025 Forward-Port-Of: odoo/enterprise#40340
Before this commit ===================== - In tablet view Continue Consumption is not working as expected in this case - instead of keeping the actual consumption step as is, and creating a new step after this one with 0 quantity input by default,but it does the opposite and when click on Continue button the quantity done is becoming 0. - Validate and Continue Consumption buttons are not showing when all steps have been completed. After this commit ===================== - Consump
Original PR description
Before this commit ===================== - In tablet view Continue Consumption is not working as expected in this case - instead of keeping the actual consumption step as is, and creating a new step after this one with 0 quantity input by default,but it does the opposite and when click on Continue button the quantity done is becoming 0. - Validate and Continue Consumption buttons are not showing when all steps have been completed. After this commit ===================== - Consumption step creating a new step with 0 quantity input by default and when click on continue button quantity done not becoming 0. - Made Validate and Continue Consumption buttons showing when all steps have been completed. - Rename button name 'Continue Production' to 'Continue Consumption'. Task id: 3212121 Forward-Port-Of: odoo/enterprise#40113
In the action_reload_ai_data method, the logger is updated to use the 'warning' level instead of the 'error' level. this error might be generated due to some customer mistake such as the date being incorrect in relation to the associated journal entry's sequence number Handled the traceback by changing the logger level to a warning. Traceback: ``` Error while reloading AI data on account.move 29: ValidationError("The Date (11/30/2022) doesn't match the sequence number of the related J
Original PR description
In the action_reload_ai_data method, the logger is updated to use the 'warning' level instead of the 'error' level. this error might be generated due to some customer mistake such as the date being incorrect in relation to the associated journal entry's sequence number
Handled the traceback by changing the logger level to a warning.
Traceback:
```
Error while reloading AI data on account.move 29: ValidationError("The Date (11/30/2022) doesn't match the sequence number of the related Journal Entry (BILL/2023/06/0001)\nYou will need to clear the Journal Entry's Number to proceed.\nIn doing so, you might want to resequence your entries in order to maintain a continuous date-based sequence.")
```
sentry-4280815461
Forward-Port-Of: odoo/enterprise#44181-Install l10n_mx_reports -Go to Accounting -> Reporting -> Audit Reports -> Trial Balance -Download "SAT (XML)" -The XML filename ends with "CT", and it should be "BN", as it was in 15 and before correction of #42325 opw-3327936 Forward-Port-Of: odoo/enterprise#44245
Original PR description
-Install l10n_mx_reports -Go to Accounting -> Reporting -> Audit Reports -> Trial Balance -Download "SAT (XML)" -The XML filename ends with "CT", and it should be "BN", as it was in 15 and before correction of #42325 opw-3327936 Forward-Port-Of: odoo/enterprise#44245
**Before this commit**: Body content is the same as tmeplate **After**: Body content is the same as the template *: account_followup, hr_appraisal, hr_appraisal_survey Community: https://github.com/odoo/odoo/pull/128953 Forward-Port-Of: odoo/enterprise#44278
Original PR description
**Before this commit**: Body content is the same as tmeplate **After**: Body content is the same as the template *: account_followup, hr_appraisal, hr_appraisal_survey Community: https://github.com/odoo/odoo/pull/128953 Forward-Port-Of: odoo/enterprise#44278
Milk testing pad issue: - [dbo] voip: answer/hangup icons are misaligned when someone calls you https://tinyurl.com/232m5fde task-3415013 part of task-3326263 Forward-Port-Of: odoo/enterprise#43600
Original PR description
Milk testing pad issue: - [dbo] voip: answer/hangup icons are misaligned when someone calls you https://tinyurl.com/232m5fde task-3415013 part of task-3326263 Forward-Port-Of: odoo/enterprise#43600
- fixed clipping belgian options when posting closing entry caused from simple refactoring problem - remove useless options of 'horizontal group' and 'extra options' from closing entry pdf - Task-id: 3375250 Forward-Port-Of: odoo/enterprise#43405 Forward-Port-Of: odoo/enterprise#42910
Original PR description
- fixed clipping belgian options when posting closing entry caused from simple refactoring problem - remove useless options of 'horizontal group' and 'extra options' from closing entry pdf - Task-id: 3375250 Forward-Port-Of: odoo/enterprise#43405 Forward-Port-Of: odoo/enterprise#42910
- Wkhtmltopdf have a 'smart-shrinking' feature that automatically shrink the font size if the document's size is too long. It doesn't work on RTL document for some reason - This is a workaround where in the table, if some sentence is too long, we'll force break it - Also an improvement for LTR where it won't shrink the font size anymore Before - after (RTL)     Before - after (LTR)   Task-id: 3264554 Forward-Port-Of: odoo/enterprise#43947 Forward-Port-Of: odoo/enterprise#43309