partner-contact/animal_owner/models/animal.py

12 lines
305 B
Python
Raw Normal View History

2021-12-12 03:14:11 +00:00
# Copyright (C) 2020 Open Source Integrators
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from flectra import fields, models
class Animal(models.Model):
_inherit = "animal"
partner_id = fields.Many2one(
2022-01-09 03:14:17 +00:00
"res.partner", string="Owner", index=True, tracking=True
2021-12-12 03:14:11 +00:00
)