[MERGE] forward port branch saas-15 up to 0e0c6542a24

This commit is contained in:
Christophe Simonis
2018-01-09 19:25:59 +01:00
+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
from . 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})