Odoo18-Base/extra-addons/marketing_automation_sms/__init__.py
hoangvv b8024171a2 - add modules(marketing automation + approvals + webstudio) \n
- create new module hr_promote (depend: hr,approvals) \n
- customize approval_type (WIP)
2025-01-17 07:32:51 +07:00

12 lines
423 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from . import wizard
def _uninstall_hook(env):
act_window = env.ref('mass_mailing_sms.mailing_mailing_action_sms', raise_if_not_found=False)
if act_window and act_window.domain and 'use_in_marketing_automation' in act_window.domain:
act_window.domain = [('mailing_type', '=', 'sms')]