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.

19 lines
659 B

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