Daily updates from Odoo
Wednesday, August 14, 2019
3 changes · master
Resolved issues and error corrections
This fixes a crash that could prevent users from opening the website menu after ecommerce was installed. The dashboard now uses the correct order date field for sales reporting, keeping website and ecommerce navigation available.
Original PR description
Before this commit it was no more possible to access website menu once ecommerce installed, because the dashboard crashes with an "Invalid field 'date_order' in leaf". Since we use the same domain for 2 disctint model, and that fields date haven't the same name, we need to pre-parse the domain when it is for sale_report to rename the field 'date_order' by 'date'. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an error that could stop users from confirming a sales order when using the product grid with attributes that do not create separate variants. Sales teams can now complete these orders without interruption.
Original PR description
To reproduce the issue: - configure a product with no_variant attributes - select "grid" mode - add this product to a sales order - fill the grid - confirm -> Traceback Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue where the PDF viewer appeared multiple times after refreshing or interacting with the manufacturing work order tablet view when IoT work order features were enabled. Users now get a cleaner, more reliable tablet experience without repeated document panels slowing or cluttering the workflow.
Original PR description
With mrp_workorder_iot, the pdf viewer is duplicate on each reload.
How to reproduce:
- Create new Manufacturing Order for MTO product;
- Mark as Todo > Plan > Work Orders, then select your workorder;
- Click on PROCESS to open workorder tablet view;
- Click on any button will reload view (Dropdown menu then close for example).
The problem is mrp_workorder_iot js_class `pedal_form` erases the mrp_workorder js_class `tablet_pdf_viewer` who is needed to avoid to reload/duplicate pdf viewer.
The fix is to make `pedal_form` extends `tablet_pdf_viewer`.
Task #2028751