Wednesday, May 20, 2020
6 changes · master
Code cleanup and technical improvements
Accounting-related actions that were only used by Enterprise have been moved from the community edition into the Enterprise accounting modules. This keeps the product structure cleaner and helps ensure accounting features are maintained in the edition where they are actually used.
Original PR description
Task [2201948](https://www.odoo.com/web#id=2201948&action=333&active_id=967&model=project.task&view_type=form&cids=1&menu_id=4720) Some actions were only used in enterprise but defined in community Linked PR: https://github.com/odoo/odoo/pull/46110
Miscellaneous changes
opw-[2256773](https://www.odoo.com/web#active_id=2256773&cids=1&id=2256773&menu_id=&model=project.task) The communication was sometimes shifted by one statement line because the reference matching check was sometimes done on the full coda line reference (8 digits) and sometimes on the first 4 digits. Forward-Port-Of: odoo/enterprise#10680
Original PR description
opw-[2256773](https://www.odoo.com/web#active_id=2256773&cids=1&id=2256773&menu_id=&model=project.task) The communication was sometimes shifted by one statement line because the reference matching check was sometimes done on the full coda line reference (8 digits) and sometimes on the first 4 digits. Forward-Port-Of: odoo/enterprise#10680
They should start with zero, see https://www.truugo.com/ubl/2.1/cl_unitofmeasure/ followup task# 2152487 Forward-Port-Of: odoo/enterprise#10687
Original PR description
They should start with zero, see https://www.truugo.com/ubl/2.1/cl_unitofmeasure/ followup task# 2152487 Forward-Port-Of: odoo/enterprise#10687
Forward port 65f0c0d (merged in saas-13.3) of commit 8a89528 (merged in 13.0) was not correctly adapted for the salary configurator internationalization introduced in saas-13.3. The `car_id` field is specific to the Belgian payroll which is no longer a dependency of `hr_contract_salary`. Forward-Port-Of: odoo/enterprise#10684
Original PR description
Forward port 65f0c0d (merged in saas-13.3) of commit 8a89528 (merged in 13.0) was not correctly adapted for the salary configurator internationalization introduced in saas-13.3. The `car_id` field is specific to the Belgian payroll which is no longer a dependency of `hr_contract_salary`. Forward-Port-Of: odoo/enterprise#10684
In studio, when we edit a sub x2many view that is not embedded, we duplicate the default view and embed it. This work fine by default, but it can be odd in case the particular view is using eg. a specific view thanks to a tree_view_ref context key on the x2many field, then editing it could totally change the content since we duplicate the default view and not the real view that was being displayed. With this changeset, we instead duplicate tree_view_ref if it is available. opw-2251643 Forwar
Original PR description
In studio, when we edit a sub x2many view that is not embedded, we duplicate the default view and embed it. This work fine by default, but it can be odd in case the particular view is using eg. a specific view thanks to a tree_view_ref context key on the x2many field, then editing it could totally change the content since we duplicate the default view and not the real view that was being displayed. With this changeset, we instead duplicate tree_view_ref if it is available. opw-2251643 Forward-Port-Of: odoo/enterprise#10508
MapBox's Legacy Static Images API seems to be soon to be retired: https://blog.mapbox.com/deprecating-studio-classic-styles-d8892ac38cb4 So eg. for new customer it seems that the tiles would not show, and after first June the API is soon to be totally retired. So this commit follow advices for migrating to use "Mapbox Static Tiles API" instead given in: https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/ opw-2243126 Forward-Port-Of: odoo/enterprise#10582 Forward-Por
Original PR description
MapBox's Legacy Static Images API seems to be soon to be retired: https://blog.mapbox.com/deprecating-studio-classic-styles-d8892ac38cb4 So eg. for new customer it seems that the tiles would not show, and after first June the API is soon to be totally retired. So this commit follow advices for migrating to use "Mapbox Static Tiles API" instead given in: https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/ opw-2243126 Forward-Port-Of: odoo/enterprise#10582 Forward-Port-Of: odoo/enterprise#10570