[IMP] agreement_serviceprofile

This commit is contained in:
Maxime Chambreuil
2019-08-31 14:47:09 -05:00
committed by Patrick Wilson
parent 58048a73cc
commit f9e22e386e
7 changed files with 49 additions and 15 deletions

View File

@@ -26,7 +26,10 @@ class AgreementServiceProfile(models.Model):
notes = fields.Text(string="Notes")
product_id = fields.Many2one('product.template', 'Service',
domain="[('type', '=', 'service')]")
domain="[('type', '=', 'service')]",
required=True)
partner_id = fields.Many2one(related='agreement_id.partner_id',
string='Partner')
# Used for Kanban grouped_by view
@api.model