fix #I7N69Y [app_odoo_customize]开发者模式下增加可查看应用所在目录

This commit is contained in:
Chill
2023-07-31 17:12:23 +08:00
parent cd1422e423
commit 6da3d3f98e
12 changed files with 333 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ from odoo import api, fields, models, modules, tools, _
import operator
class IrModule(models.Model):
_inherit = 'ir.module.module'
@@ -15,6 +16,8 @@ class IrModule(models.Model):
# latest_version = fields.Char('Installed Version', readonly=True)
local_updatable = fields.Boolean('Local updatable', compute=False, default=False, store=True)
addons_path_id = fields.Many2one('ir.module.addons.path', string='Addons Path', readonly=True)
addons_path = fields.Char(string='Addons Path', related='addons_path_id.path', readonly=True)
def module_multi_uninstall(self):
""" Perform the various steps required to uninstall a module completely