Wednesday, November 22, 2017
1 change · master
Resolved issues and error corrections
This fix changes how stock and manufacturing setup records are refreshed during module updates so existing records are reused instead of duplicated. It helps prevent important records from being accidentally removed after an update, improving upgrade reliability.
Original PR description
Purpose ======= As the 'function' tag is re-evaluated on the module update (even when noupdate="1"), the ir.model.data will be created a second time with the function 'create'. This leads to the record deletion after the update when calling '_process_end'. Specification ============= Use '_update' instead of 'create' and '_update_dummy'. - _update won't create another ir.model.data if it already exists. - _update already calls _update_dummy to avoid the record deletion. 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