You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
635 B

  1. # Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
  2. # Copyright 2017 Pedro M. Baeza <pedro.baeza@tecnativa.com>
  3. # License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
  4. from odoo import fields, models
  5. class ResPartner(models.Model):
  6. """Implement custom information for partners.
  7. Besides adding some visible feature to the module, this is useful for
  8. testing and example purposes.
  9. """
  10. _name = "res.partner"
  11. _inherit = [_name, "custom.info"]
  12. custom_info_template_id = fields.Many2one(context={"default_model": _name})
  13. custom_info_ids = fields.One2many(context={"default_model": _name})