Initialize v18 branch
Rename *_usability modules to *_usability_akretion
This commit is contained in:
16
base_usability_akretion/models/ir_model.py
Normal file
16
base_usability_akretion/models/ir_model.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright 2019-2022 Akretion France (http://www.akretion.com/)
|
||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class IrModel(models.Model):
|
||||
_inherit = 'ir.model'
|
||||
|
||||
@api.depends('name', 'model')
|
||||
def name_get(self):
|
||||
res = []
|
||||
for rec in self:
|
||||
res.append((rec.id, '%s (%s)' % (rec.name, rec.model)))
|
||||
return res
|
||||
Reference in New Issue
Block a user