odoo_module.py 370 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. from openerp import models, fields, api
  3. class OdooModule(models.Model):
  4. _name = 'odoo.module'
  5. name = fields.Char(string='Nombre', size=100)
  6. technical_name = fields.Char(string='Nombre Técnico', size=100)
  7. author = fields.Char(string='Autor', size=160)
  8. @api.model
  9. def update_modules(self):
  10. print('read modules')