From d0d8f245b335544128fe81506713b3e9a44a2cc2 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 9 Jan 2018 18:12:47 +0100 Subject: [PATCH] [MERGE] forward port branch 10.0 up to 0097bff4331 --- __init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/__init__.py b/__init__.py index 81fc81d29c9..d5017840d66 100644 --- a/__init__.py +++ b/__init__.py @@ -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})