[FIX] agreement_serviceprofile: Github Issue #370

This commit is contained in:
Maxime Chambreuil
2019-09-05 12:17:51 -05:00
parent 8ac548e4ee
commit a5353ac1d1
5 changed files with 47 additions and 2 deletions

View File

@@ -26,7 +26,8 @@ class AgreementServiceProfile(models.Model):
notes = fields.Text(string="Notes")
product_id = fields.Many2one('product.template', 'Service Product',
domain="[('type', '=', 'service')]",
domain="[('is_serviceprofile', '=', True), "
"('type', '=', 'service')]",
required=True)
partner_id = fields.Many2one(related='agreement_id.partner_id',
string='Partner')