Daily updates from Odoo
Thursday, August 25, 2022
5 changes · master
Enhancements to existing features
Amazon order synchronization now requests the necessary authorized data in the main order queries instead of making extra follow-up calls. This should make order imports more efficient while still handling restricted customer and gift information appropriately.
Original PR description
Before this commit, to get some restricted information, we needed to call 2 (or 3 to get the gift information) additional operations using a restricted data token. This information is now available in the basic operations as long as we get a RDT adapted for it. When querying Amazon, we now specify the restricted elements that need to be added in the response of the basic operations. task-2927248
Users can now download spreadsheet files directly from the Documents area without first opening the spreadsheet. This saves time and makes retrieving files more convenient, especially when users only need a local copy.
Original PR description
Task-id 2918698
The worksheet Studio button has been updated so it works reliably with the newer interface framework. This restores the ability to open Studio from worksheets and adds safeguards to prevent the issue from returning.
Original PR description
**The PR is ready** This commit converts the widget to Owl. The legacy widget has also been removed as it was not longer in use. The new button work appropriately to open studio after performing a doAction. It also fixes an issue in master since the rewrite of views. The button didn't open studio
Resolved issues and error corrections
Users can now save spreadsheet global filters even when a data source has no selected field. The interface warns that the filter will not apply to that data source, and evaluation no longer crashes when an empty field is encountered.
Original PR description
Before this commit, it was not possible to save a filter without selecting
a field for each data source.
However, adding a data source after the definition of the filter (which
lead to an empty field for this data source) was allowed, which was
incoherent with the first point.
As it's ok to have an empty field, we allow this and warn the user that
the filter will not be applied to this data source.
This commit also fix an issue where a field could be an empty object (`{}`)
instead of `undefined`, which caused a traceback during the evaluation
of the filter.
Task-id 2959765Code cleanup and technical improvements
The Field Service product selection screen for adding materials to tasks has been rebuilt on Odoo’s newer interface framework. Users should see the same workflow with smoother quantity editing, including automatic focus when changing quantities, while obsolete unused code has been removed.
Original PR description
Purpose ======= This PR converts the kanban view of products (`product.product`) used in Field Service to add some materials in a task into the new framework (OWL). Implementation details ---------------------- - Convert the kanban view in OWL - Convert the `fsm_product_quantity` widget in OWL - Remove the `fsm_date` widget in legacy because it is not used in the codebase. - Adapt JS tests for the `kanban` view and the `fsm_product_quantity` widget. - Remove the `fsm_product_quantity` widget and the kanban view in legacy. - Use the autofocus hook to directly select the input element when the widget is in edit mode.