Daily updates from Odoo
Navigate
Branch
Monday, December 20, 2021
13 changes
Enhancements to existing features
Approvals, electronic signatures, and VoIP activities were updated to align with Odoo's newer activity view structure. This helps keep these workflows consistent and maintainable, with limited direct impact on day-to-day users.
Original PR description
part of task-2579306
Resolved issues and error corrections
A missing data field that could cause errors when viewing planning allocation hours has been fixed. This improves reliability for users working with planning schedules and related forecast views.
Original PR description
The dict key was missing and produced a traceback for planning allocations. TaskID: 2635284
Code cleanup and technical improvements
This change updates how certain dialogs signal that they have closed, preparing the system for an upcoming framework upgrade. It is an internal cleanup affecting mobile, spreadsheet, enterprise web, and studio areas, with no expected change to day-to-day user workflows.
Original PR description
*: documents_spreadsheet, web_enterprise, web_studio In owl-2, t-on will no longer be supported on components. This commit converts the dialog-closed event to use a callback-prop based approach.
Miscellaneous changes
Related PR: odoo/odoo#81693 Forward-Port-Of: odoo/enterprise#23007
Original PR description
Related PR: odoo/odoo#81693 Forward-Port-Of: odoo/enterprise#23007
mrp_subcontracting also inherits `mrp.mrp_production_form_view`. Because mrp_plm was doing a field replace, it was removing the BoM invisible attribute added by subcontracting. Therefore we update the original view to be more flexible for extending and adjust the plm version to match. Task: 2695173 COM PR: odoo/odoo#80587 Forward-Port-Of: odoo/enterprise#22637
Original PR description
mrp_subcontracting also inherits `mrp.mrp_production_form_view`. Because mrp_plm was doing a field replace, it was removing the BoM invisible attribute added by subcontracting. Therefore we update the original view to be more flexible for extending and adjust the plm version to match. Task: 2695173 COM PR: odoo/odoo#80587 Forward-Port-Of: odoo/enterprise#22637
total_included has been depreciated on the next commit https://github.com/odoo/enterprise/commit/83ce6409aec5ef52254424147ba6072c5be779f2 When the FW was made from v14 it was not changed for its equivalent https://github.com/odoo/enterprise/commit/3147a070f4eccc7e2daea1ea2dab96eb79d2eb47#diff-ca48d04d6ceb81e231167d0e080657d2c69f2bff4652621a8689436c61daf020 Forward-Port-Of: odoo/enterprise#22958
Original PR description
total_included has been depreciated on the next commit https://github.com/odoo/enterprise/commit/83ce6409aec5ef52254424147ba6072c5be779f2 When the FW was made from v14 it was not changed for its equivalent https://github.com/odoo/enterprise/commit/3147a070f4eccc7e2daea1ea2dab96eb79d2eb47#diff-ca48d04d6ceb81e231167d0e080657d2c69f2bff4652621a8689436c61daf020 Forward-Port-Of: odoo/enterprise#22958
Two fixes of Barcode Inventory Adjustments when the product is tracked by serial numbers: **[FIX] stock_barcode: apply tracked quant w/o SN** > When apply an inventory adjustment, there is no refresh if the confirmation wizard is displayed (happens when confirm an inventory with quant for a tracked product without any lot/serial number). > > How to reproduce: > - Create a tracked product and set a barcode; > - Go to Barcode > Inventory Adjustments; > - Scan the tracked product's barcod
Original PR description
Two fixes of Barcode Inventory Adjustments when the product is tracked by serial numbers: **[FIX] stock_barcode: apply tracked quant w/o SN** > When apply an inventory adjustment, there is no refresh…
Two fixes of Barcode Inventory Adjustments when the product is tracked by serial numbers:
**[FIX] stock_barcode: apply tracked quant w/o SN**
> When apply an inventory adjustment, there is no refresh if the confirmation wizard is displayed (happens when confirm an inventory with quant for a tracked product without any lot/serial number).
>
> How to reproduce:
> - Create a tracked product and set a barcode;
> - Go to Barcode > Inventory Adjustments;
> - Scan the tracked product's barcode then click on "Set quantity button" to set the inventory quantity to 1 with no lot/serial number
> - Click Apply button then confirm in wizard that products have no specified Lot/SN -> The inventory is correctly applied but there is no refresh.
**[FIX] stock_barcode: scan tracked product**
> Before this commit, if the user scans a tracked product barcode and there is already an existing quant for this product, it won't find existing quant if it has no lot/serial number.
>
> How to reproduce:
> - Create a product tracked by serial number and set a barcode;
> - Go to the Inventory Adjustments and create a quant for this product, set an `inventory_quantity` but no serial number and apply;
> - Go to Barcode > Inventory Adjustments and scan the product barcode
--> A line for this product is created but the qty. set by the previous Inv. Adj. isn't set on the line.
>
> Also fix a little issue with the Set Button which happens in this case:
> as the max qty for a product tracked by SN is supposed to be 1, the button didn't work properly if the line `quantity` is greater than 1, so the line inv. qty can only be switched to 0 and 1 and the line could not be marked as unset.
task-2682383
Forward-Port-Of: odoo/enterprise#22060The system parameter sign.use_custom_font allow users to use another font instead of the default one (useful if there is character missing for their language). The font must be in directory: /addons/web/static/src/fonts/sign but since odoo/odoo@ecfe85db84fb5649aaeb48ba3b221386e61a57bc the directory is moved to: /addons/web/static/fonts/sign opw-2712667 Forward-Port-Of: odoo/enterprise#22953
Original PR description
The system parameter sign.use_custom_font allow users to use another font instead of the default one (useful if there is character missing for their language). The font must be in directory: /addons/web/static/src/fonts/sign but since odoo/odoo@ecfe85db84fb5649aaeb48ba3b221386e61a57bc the directory is moved to: /addons/web/static/fonts/sign opw-2712667 Forward-Port-Of: odoo/enterprise#22953
Typo error When selecting theme_newsletter_template in email marketing, clicking on o_mail_block_header_social, showed "This block is outdated" because this snippet doesn't exist. opw:2704691 Forward-Port-Of: odoo/enterprise#22800
Original PR description
Typo error When selecting theme_newsletter_template in email marketing, clicking on o_mail_block_header_social, showed "This block is outdated" because this snippet doesn't exist. opw:2704691 Forward-Port-Of: odoo/enterprise#22800
[FIX] web_grid: display the grid if the first row is empty The web grid only render if the first row that it should load contains some data. It create issues where the entire grid doesn't load if other rows contains data. To reproduce: 1. Install Timesheets 2. Archive both projects "Research & Development" and "Office Design" 3. Open Timesheet Timesheet > All timesheets 4. Toggle month view (in the grid view) 5. Toggle "week view" 6. Go to previous week until it appear empty =
Original PR description
[FIX] web_grid: display the grid if the first row is empty The web grid only render if the first row that it should load contains some data. It create issues where the entire grid doesn't load if other rows contains data. To reproduce: 1. Install Timesheets 2. Archive both projects "Research & Development" and "Office Design" 3. Open Timesheet Timesheet > All timesheets 4. Toggle month view (in the grid view) 5. Toggle "week view" 6. Go to previous week until it appear empty => Week is empty despite the fact that timesheets should appear Video of the issue on a standard database: https://drive.google.com/file/d/10gsx8pdSHyDYGcysUetman3f9NiK2EiP/view OPW-2632079 Forward-Port-Of: odoo/enterprise#21840
Update health indice rule parameters for the years 2021 and 2022. TaskId-2717439 Forward-Port-Of: odoo/enterprise#22978 Forward-Port-Of: odoo/enterprise#22964
Original PR description
Update health indice rule parameters for the years 2021 and 2022. TaskId-2717439 Forward-Port-Of: odoo/enterprise#22978 Forward-Port-Of: odoo/enterprise#22964
Issue ----- In some country invoice with line at 0 quantity is not allowed. Since there is no point to invoice a line with quantity = 0 we can filter them out. Forward-Port-Of: odoo/enterprise#22745
Original PR description
Issue ----- In some country invoice with line at 0 quantity is not allowed. Since there is no point to invoice a line with quantity = 0 we can filter them out. Forward-Port-Of: odoo/enterprise#22745
**Steps to follow** - Install sale_management,web_studio,account_accountant - Enable Analytic tags in the Accounting settings - Create a quotation - Edit the order lines form with studio - Select the Analytic tags field - Enable the "Disable creation" checkbox -> A Validation Error appears **Cause of the issue** The model is derived from the view in the edit_view route server side. But in the case of a subview form, the model is not the one from the view. In
Original PR description
**Steps to follow** - Install sale_management,web_studio,account_accountant - Enable Analytic tags in the Accounting settings - Create a quotation - Edit the order lines form with studio - Select the Analytic tags field - Enable the "Disable creation" checkbox -> A Validation Error appears **Cause of the issue** The model is derived from the view in the edit_view route server side. But in the case of a subview form, the model is not the one from the view. In this case, `view.model` is 'sale.order' instead of 'sale.order.line'. **Solution** - Add an optional model parameter to the edit_view route - Pass the current model being edited in the javascript call opw-2519355 Forward-Port-Of: odoo/enterprise#22961 Forward-Port-Of: odoo/enterprise#22028