from odoo import models, fields, api, _ from odoo.exceptions import UserError class ErpModules(models.Model): _name = 'erp.modules' _rec_name = "name" name = fields.Char(string="Nombre")