[ADD] base_install_request: Allow internal users requesting an app install

closes odoo/odoo#99438

Taskid: 2969678
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Yannick Tivisse
2022-09-16 19:16:54 +02:00
parent 6c213203cb
commit c70984f403
12 changed files with 307 additions and 13 deletions
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import ir_module_module
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, _
class IrModuleModule(models.Model):
_inherit = 'ir.module.module'
def action_open_install_request(self):
self.ensure_one()
return {
'type': 'ir.actions.act_window',
'target': 'new',
'name': _('Activation Request of "%s"', self.shortdesc),
'view_mode': 'form',
'res_model': 'base.module.install.request',
'context': {'default_module_id': self.id},
}