[MERGE] forward port branch 10.0 up to 0097bff4331

This commit is contained in:
Christophe Simonis
2018-01-09 18:12:47 +01:00
parent 40c817b308
commit d0d8f245b3
+8
View File
@@ -1,4 +1,12 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, SUPERUSER_ID
import models
def uninstall_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env['delivery.carrier'].search([
('delivery_type', '=', 'temando')
]).write({'delivery_type': 'fixed', 'fixed_price': 0})