Update rent_payment.py

This commit is contained in:
zainab2097 2024-09-08 14:12:24 +03:00 committed by GitHub
parent 294a08c4f3
commit 350480db3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ class RentPayment(models.Model):
def _prepare_invoice_values(self, payment, amount):
self.renter_id.property_account_receivable_id = payment.contract_id.debit_account_id.id
unit_name = self.unit_ids[0].name if self.unit_ids else '' # Check if unit_ids is not empty
line_invoice=[]
line_journal = []