Daily updates from Odoo
Friday, July 17, 2020
11 changes · master
Resolved issues and error corrections
The SAFT report test suite was updated to use clearer sample data and correct expected values for amounts and invoice numbers. This helps ensure financial export reports for supported countries are validated more accurately without changing day-to-day user workflows.
Original PR description
-Improve the tests understanding by creating explicit data. -Fix the tests comparing data with wrong amounts / invoice numbers. -Improve the test coverage by using AssertXmlTreeEqual. -Remove redundant code about XSD validation.
Features or functions removed from Odoo
The separate receipt reprinting component is being removed because its capabilities are now included directly in the main Point of Sale app. This simplifies the product setup and reduces duplicate functionality for businesses using POS features.
Miscellaneous changes
Forward-Port-Of: odoo/enterprise#11922
Original PR description
Forward-Port-Of: odoo/enterprise#11922
When the OCR try to applies the values to an invoice, it searches for an existing tax. This search must take the company into account, otherwise an AccessError is raised. Bad fw-port, see : #11578 Forward-Port-Of: odoo/enterprise#11929 Forward-Port-Of: odoo/enterprise#11916
Original PR description
When the OCR try to applies the values to an invoice, it searches for an existing tax. This search must take the company into account, otherwise an AccessError is raised. Bad fw-port, see : #11578 Forward-Port-Of: odoo/enterprise#11929 Forward-Port-Of: odoo/enterprise#11916
Insert a pivot in a spreadsheet where there are many values in a subgroup such that the pivot takes more than the default 26 columns in spreadsheet. => traceback When inserting the pivot, computing the size of the sheet does not correctly takes into account subgroups. Before this commit, the size was computed (differently) at two places: 1) in the controller before inserting (the faulty code here). 2) in the plugin itself when rebuilding a pivot. This commit removes the duplica
Original PR description
Insert a pivot in a spreadsheet where there are many values in a subgroup such that the pivot takes more than the default 26 columns in spreadsheet. => traceback When inserting the pivot, computing the size of the sheet does not correctly takes into account subgroups. Before this commit, the size was computed (differently) at two places: 1) in the controller before inserting (the faulty code here). 2) in the plugin itself when rebuilding a pivot. This commit removes the duplicated computation from the controller and let the plugin handle it in all cases. Co-authored-by: fleodoo <fle@odoo.com> Forward-Port-Of: odoo/enterprise#11878
Since export_data is prohibited for users who don't have the group `base.group_allow_export`, we need to get administrator privileges in this query. This change is safe because all fields are hard-coded, and the data was searched with the user's rights. This PR depends on odoo/odoo#54628 Forward-Port-Of: odoo/enterprise#11866
Original PR description
Since export_data is prohibited for users who don't have the group `base.group_allow_export`, we need to get administrator privileges in this query. This change is safe because all fields are hard-coded, and the data was searched with the user's rights. This PR depends on odoo/odoo#54628 Forward-Port-Of: odoo/enterprise#11866
When the OCR try to applies the values to an invoice, it searches for an existing tax. This search must take the company into account, otherwise an AccessError is raised. Bad fw-port, see : #11578 Forward-Port-Of: odoo/enterprise#11916
Original PR description
When the OCR try to applies the values to an invoice, it searches for an existing tax. This search must take the company into account, otherwise an AccessError is raised. Bad fw-port, see : #11578 Forward-Port-Of: odoo/enterprise#11916
Prevent recursion in folders which can lead to infinite loop and error. opw-2279827 Forward-Port-Of: odoo/enterprise#11910 Forward-Port-Of: odoo/enterprise#11908
Original PR description
Prevent recursion in folders which can lead to infinite loop and error. opw-2279827 Forward-Port-Of: odoo/enterprise#11910 Forward-Port-Of: odoo/enterprise#11908
When an employee is set as `future_driver_id` of its own vehicle, the vehicle was excluded from the query, so the employee could not open the simulation link again and keep the same vehicle. This commit fixes this case by including the vehicles whose `future_driver_id` is the `driver_id`. Forward-Port-Of: odoo/enterprise#11892 Forward-Port-Of: odoo/enterprise#11883
Original PR description
When an employee is set as `future_driver_id` of its own vehicle, the vehicle was excluded from the query, so the employee could not open the simulation link again and keep the same vehicle. This commit fixes this case by including the vehicles whose `future_driver_id` is the `driver_id`. Forward-Port-Of: odoo/enterprise#11892 Forward-Port-Of: odoo/enterprise#11883
It does not make much sense to show the backorder when only the quality checks are missing as you cant use the button if they are not done and then once you do the quality checks the button backorder dissapear and the button mark as done shows. Instead directly show the mark as done button. task-2278147 Forward-Port-Of: odoo/enterprise#11903
Original PR description
It does not make much sense to show the backorder when only the quality checks are missing as you cant use the button if they are not done and then once you do the quality checks the button backorder dissapear and the button mark as done shows. Instead directly show the mark as done button. task-2278147 Forward-Port-Of: odoo/enterprise#11903
Link to the release: https://github.com/odoo/o-spreadsheet/releases/tag/0.3.0 Here is the list of changes: Improvements * core: remove duplicate key cols and rows, height and width of workbook * core: toggle formula visibility * core: get row/col of inactive sheet * render: split adjust viewport into multiple parts Fixes * core: saving the row and col number correctly * core: use command sheet when resizing row and cols * tests: fix topbar tests fails depending on execution order
Original PR description
Link to the release: https://github.com/odoo/o-spreadsheet/releases/tag/0.3.0 Here is the list of changes: Improvements * core: remove duplicate key cols and rows, height and width of workbook * core: toggle formula visibility * core: get row/col of inactive sheet * render: split adjust viewport into multiple parts Fixes * core: saving the row and col number correctly * core: use command sheet when resizing row and cols * tests: fix topbar tests fails depending on execution order * cross sheet dependencies cycles incorrectly detected * renderer: tooltip randomly generate console errors * renderer: Switching sheets of different size causes a crash * renderer: Delete the last row or columns Forward-Port-Of: odoo/enterprise#11894