Odoo18-Base/addons/l10n_in/__init__.py
2025-01-06 10:57:38 +07:00

14 lines
422 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from . import demo
def init_settings(env):
# Activate cash rounding by default for all companies as soon as the module is installed.
group_user = env.ref('base.group_user').sudo()
group_user._apply_group(env.ref('account.group_cash_rounding'))
def post_init(env):
init_settings(env)