1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/sale_ebay/__init__.py
2024-12-10 09:04:09 +07:00

18 lines
617 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import controllers
from . import models
from . import tools
from . import wizard
def uninstall_hook(env):
icp = env['ir.config_parameter']
# remove config parameter to ebay.site record
icp.set_param('ebay_site', False)
# remove config parameter to sale_ebay.ebay_sales_team
team_id = int(icp.get_param('ebay_sales_team'))
ebay_team = env.ref('sales_team.ebay_sales_team', False)
if team_id and ebay_team and team_id == ebay_team.id:
icp.set_param('ebay_sales_team', False)