[FIX] repair: ensure properties are read with the correct company.

This commit is contained in:
Victor Feyens
2020-02-27 12:19:24 +00:00
parent ef16266ad6
commit 8de2b9fc7b
+1
View File
@@ -172,6 +172,7 @@ class Repair(models.Model):
@api.onchange('partner_id')
def onchange_partner_id(self):
self = self.with_company(self.company_id)
if not self.partner_id:
self.address_id = False
self.partner_invoice_id = False