Daily updates from Odoo
Navigate
Branch
Wednesday, February 8, 2023
14 changes
Enhancements to existing features
Warehouse users can now scan a different location after scanning products to split the remaining quantity onto a new line. This helps teams pick reserved stock from multiple locations more accurately while keeping completed quantities clear.
Original PR description
This commit allows the user to split move lines to take product from different locations than the one specified, this is done by scanning a location after scanning some products. The missing quantity from the original line will be reserved by the new line and are to be scanned on the new line. The original line reserved quantity will be set to the qty done and marked completed. TaskId: 2859690
Resolved issues and error corrections
Orders using Sendcloud delivery can now be validated without an error when label attachments are added to the order conversation. This prevents paid website orders from getting stuck during delivery processing.
Features or functions removed from Odoo
Several Enterprise apps were adjusted to work after older form, list, kanban, and dialog screen components were removed. This keeps affected apps compatible with the updated Odoo interface foundation and reduces reliance on legacy code.
Original PR description
This commit is the counterpart of odoo/odoo#111809 which removes the legacy implementation of the form, list and kanban views + view dialogs, and some view fields/widgets. Task 3168640
Miscellaneous changes
When importing a FEC with a positive MontantDevise when the line is credited, it raises a Validation Error because the sql constraint `check_amount_currency_balance_sign` is not matched. Indeed, the MontantDevise is read as the `amount_currency` and it should be negative for credit line. task-https://www.odoo.com/web#id=3166143&cids=1&model=project.task&view_type=form Forward-Port-Of: odoo/enterprise#36750
Original PR description
When importing a FEC with a positive MontantDevise when the line is credited, it raises a Validation Error because the sql constraint `check_amount_currency_balance_sign` is not matched. Indeed, the MontantDevise is read as the `amount_currency` and it should be negative for credit line. task-https://www.odoo.com/web#id=3166143&cids=1&model=project.task&view_type=form Forward-Port-Of: odoo/enterprise#36750
amount_residual is not recomputed when the account is changed to 'reconcile'. Therefore, the previous code was reconciling amls having amount_residual=0 all the times. Then, no account.partial.reconcile was created. Forward-Port-Of: odoo/enterprise#36815
Original PR description
amount_residual is not recomputed when the account is changed to 'reconcile'. Therefore, the previous code was reconciling amls having amount_residual=0 all the times. Then, no account.partial.reconcile was created. Forward-Port-Of: odoo/enterprise#36815
Before this commit it was not possible to sort lines on the trial balance. The problem was due to the fact that we use a _custom_options_initializer that adds columns (initial and end balance) **after** we order the columns. At the moment we do the order, we don't have all the columns yet and since we check the index of the ordered column, it doesn't work. (For example, if we want to order column at index 3 but we only have 2 columns, the index will never match) To fix that, we compute (ag
Original PR description
Before this commit it was not possible to sort lines on the trial balance. The problem was due to the fact that we use a _custom_options_initializer that adds columns (initial and end balance) **after** we order the columns. At the moment we do the order, we don't have all the columns yet and since we check the index of the ordered column, it doesn't work. (For example, if we want to order column at index 3 but we only have 2 columns, the index will never match) To fix that, we compute (again) the _init_options_order_column **after** we add the columns. Forward-Port-Of: odoo/enterprise#36542
Open general ledger Filter account using search bar Export pdf Issue: all accounts are exported, search bar is ignored opw-3147673 Forward-Port-Of: odoo/enterprise#36466
Original PR description
Open general ledger Filter account using search bar Export pdf Issue: all accounts are exported, search bar is ignored opw-3147673 Forward-Port-Of: odoo/enterprise#36466
Steps to reproduce: - Install Accounting and the l10n_lu module. - Go to Accounting > Reporting > Statement Reports > Balance Sheet. - In the top bar of the report, select Balance Sheet (abridged)(LU) as the report template. - Now scroll down until "a) becoming due and payable within one year" and open the drop-down. Issue: We can see that the value we have inside does not match what we are showing we are taking into account the Customers invoice twice. Solution: Fixed the form
Original PR description
Steps to reproduce: - Install Accounting and the l10n_lu module. - Go to Accounting > Reporting > Statement Reports > Balance Sheet. - In the top bar of the report, select Balance Sheet (abridged)(LU) as the report template. - Now scroll down until "a) becoming due and payable within one year" and open the drop-down. Issue: We can see that the value we have inside does not match what we are showing we are taking into account the Customers invoice twice. Solution: Fixed the formula that calculates this part to remove what's causing the issue. opw-3150153 Forward-Port-Of: odoo/enterprise#36773
Having hardcoded XML IDs in the mrp.workorder.action_print function doesn't allow to use different reports in different contexts. By providing dedicated functions to return the actions to use according to the product tracking, it allows to redefine which action or action report is returned for the printing. X-original-commit: 56809c9 Manual forward port of #36349 ping @Whenrow Forward-Port-Of: odoo/enterprise#36464
Original PR description
Having hardcoded XML IDs in the mrp.workorder.action_print function doesn't allow to use different reports in different contexts. By providing dedicated functions to return the actions to use according to the product tracking, it allows to redefine which action or action report is returned for the printing. X-original-commit: 56809c9 Manual forward port of #36349 ping @Whenrow Forward-Port-Of: odoo/enterprise#36464
When no total is found by the OCR, the default value of the total should be 0.0 instead of an empty string as it later used to perform comparison with other float values. Forward-Port-Of: odoo/enterprise#36693
Original PR description
When no total is found by the OCR, the default value of the total should be 0.0 instead of an empty string as it later used to perform comparison with other float values. Forward-Port-Of: odoo/enterprise#36693
This commit renames the /outline command inside knowledge from Outline to Article Structure. This is done as such because the translation in FR of Outline used the same translation as for the tables: *Contour*, instead of *Structure*. Thus this commit changes the name of the command and modifies the .pot file for the traductions. task-3169027 Forward-Port-Of: odoo/enterprise#36753
Original PR description
This commit renames the /outline command inside knowledge from Outline to Article Structure. This is done as such because the translation in FR of Outline used the same translation as for the tables: *Contour*, instead of *Structure*. Thus this commit changes the name of the command and modifies the .pot file for the traductions. task-3169027 Forward-Port-Of: odoo/enterprise#36753
When having an unknown partner on the partner ledger and trying to export it in any format, a traceback will appear. opw-3084637 Forward-Port-Of: odoo/enterprise#34741
Original PR description
When having an unknown partner on the partner ledger and trying to export it in any format, a traceback will appear. opw-3084637 Forward-Port-Of: odoo/enterprise#34741
A default quantity is set when scanning barcodes assuming a scanned lot to contain at least one product. However, when scanning a tracking number after scanning the corresponding products, the scanned quantities should simply be assigned to the scanned tracking number. opw-2870675 Forward-Port-Of: odoo/enterprise#36023 Forward-Port-Of: odoo/enterprise#28302
Original PR description
A default quantity is set when scanning barcodes assuming a scanned lot to contain at least one product. However, when scanning a tracking number after scanning the corresponding products, the scanned quantities should simply be assigned to the scanned tracking number. opw-2870675 Forward-Port-Of: odoo/enterprise#36023 Forward-Port-Of: odoo/enterprise#28302
How to reproduce: - open an article in Knowledge - create a table of contents (/toc) or an outline (/outline) - lock the article - unlock the article Current behavior: traceback Expected behavior: no traceback Fix: - `startWysiwyg` method from `html_field` is an asynchronous method that is sometimes called synchronously (`onMounted`). - Behavior Components are instanciated in independant Owl Apps inside the `html_field`, by the `updateBehaviors` method. Therefore we have to
Original PR description
How to reproduce: - open an article in Knowledge - create a table of contents (/toc) or an outline (/outline) - lock the article - unlock the article Current behavior: traceback Expected behavior: no traceback Fix: - `startWysiwyg` method from `html_field` is an asynchronous method that is sometimes called synchronously (`onMounted`). - Behavior Components are instanciated in independant Owl Apps inside the `html_field`, by the `updateBehaviors` method. Therefore we have to make sure that when the html_field is in edit mode, we only call `updateBehaviors` when the `wysiwyg` is ready When switching from locked mode (readonly) to unlocked mode (edit), the html_field undergoes `onPatched`, but the wysiwyg is not ready yet (with the odooEditor), so we can't `updateBehaviors` at that time. It will be done in the `startWysiwyg` method instead, after properly awaiting the OdooEditor. Task-3165912 Forward-Port-Of: odoo/enterprise#36590