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