Update rent_payment.py
This commit is contained in:
parent
40ed8e1e64
commit
d1e339ca0b
|
|
@ -54,7 +54,7 @@ class RentPayment(models.Model):
|
||||||
note = fields.Text(string="Note")
|
note = fields.Text(string="Note")
|
||||||
|
|
||||||
@api.depends('contract_id')
|
@api.depends('contract_id')
|
||||||
def _compute_renter(self):
|
def _compute_renter(self):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
if rec.contract_id:
|
if rec.contract_id:
|
||||||
rec.renter_id = rec.contract_id.partner_id.id
|
rec.renter_id = rec.contract_id.partner_id.id
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue