diff --git a/__init__.py b/__init__.py index dc5e6b693d1..03e0428dae5 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 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})