Commit 800f3531 authored by Actarus's avatar Actarus
Browse files

Changed partner of a site to computed field; added similarly maintenance_partner

parent d4c0c9d6
......@@ -11,7 +11,6 @@ class CustomerSite(models.Model):
# ======
name = fields.Char(string="Nom", required=True)
partner_id = fields.Many2one("customer.partner", string="Propriétaire")
# Address
street = fields.Char(string="Rue")
......@@ -24,4 +23,6 @@ class CustomerSite(models.Model):
# Contacts
contact_id = fields.Many2one("customer.contact", string="Contact")
partner_id = fields.Many2one(related="contact_id.partner_id", string="Propriétaire")
maintenance_contact_id = fields.Many2one("customer.contact", string="Contact de maintenance")
maintenance_partner_id = fields.Many2one(related="maintenance_contact_id.partner_id", string="Entreprise de maintenance")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment