Update end_rental_contract.py

This commit is contained in:
zainab2097 2024-10-03 22:07:14 +03:00 committed by GitHub
parent 2471fa2160
commit 8ce9c45a98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class EndOfRent(models.Model):
return invoice_vals
def _prepare_out_refund_invoice_values(self, end, amount):
self.contract_id.partner_id.property_account_receivable_id = end.contract_id.accrued_account_id.id
# self.contract_id.partner_id.property_account_receivable_id = end.contract_id.accrued_account_id.id
invoice_vals = {
'ref': end.name,
'move_type': 'out_refund',