Update rent_payment.py
This commit is contained in:
parent
294a08c4f3
commit
350480db3e
|
|
@ -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 = []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue