Files
odoo_source/addons/base_install_request/__init__.py
T
Lucas Lefèvre 37f16fb9ac [IMP] board: move board app to Dashboard app
Since cb5cca7, there are two "Dashboard" apps on the home screen.
The new one becomes the main Dashboard app.

The module `board` is not deprecated but it won't be advertised
as a full app anymore. It will continue to work on databases where it is
installed under a new menu item "My Dashboard" in the Dashboard app.

closes odoo/odoo#100260

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2022-09-20 20:19:49 +02:00

23 lines
659 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from . import wizard
from odoo import api, tools, SUPERUSER_ID
def _auto_install_apps(cr, registry):
if not tools.config.get('default_productivity_apps', True):
return
env = api.Environment(cr, SUPERUSER_ID, {})
env['ir.module.module'].sudo().search([
('name', 'in', [
# Community
'hr', 'mass_mailing', 'project', 'survey',
# Enterprise
'appointment', 'knowledge', 'planning', 'sign',
]),
('state', '=', 'uninstalled')
]).button_install()