docker-odoo/16.0/extra-addons/openems/models/partner.py
Arila Barnes 5594ca8d5d Added support for OpenEMS Odoo Add-ons
Signed-off-by: Arila Barnes <axmsoftware@Arilas-MacBook-Air-2.local>
2024-07-30 09:30:39 -07:00

13 lines
361 B
Python

from odoo import fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
installer_setup_protocols_ids = fields.One2many(
"openems.setup_protocol", "installer_id", "Installed OpenEMS Edge"
)
customer_setup_protocols_ids = fields.One2many(
"openems.setup_protocol", "customer_id", "Owner of OpenEMS Edge"
)