[IMP] base_import_module: add fields for industry modules
closes odoo/odoo#139726 Signed-off-by: Pierre Masereel (pim) <pim@odoo.com>
This commit is contained in:
@@ -13,6 +13,8 @@ class BaseImportModule(models.TransientModel):
|
||||
state = fields.Selection([('init', 'init'), ('done', 'done')], string='Status', readonly=True, default='init')
|
||||
import_message = fields.Text()
|
||||
force = fields.Boolean(string='Force init', help="Force init mode even if installed. (will update `noupdate='1'` records)")
|
||||
with_demo = fields.Boolean(string='Import demo data of module')
|
||||
modules_dependencies = fields.Text()
|
||||
|
||||
def import_module(self):
|
||||
self.ensure_one()
|
||||
|
||||
@@ -25,6 +25,10 @@ class IrModule(models.Model):
|
||||
_inherit = "ir.module.module"
|
||||
|
||||
imported = fields.Boolean(string="Imported Module")
|
||||
module_type = fields.Selection([
|
||||
('official', 'Official Apps'),
|
||||
('industries', 'Industries'),
|
||||
], default='official')
|
||||
|
||||
def _get_modules_to_load_domain(self):
|
||||
# imported modules are not expected to be loaded as regular modules
|
||||
|
||||
Reference in New Issue
Block a user