Merge pull request #447 from expsa/rent4

Update rent_payment.py
This commit is contained in:
zainab2097 2024-07-31 10:42:23 +03:00 committed by GitHub
commit 4ad0fb180c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class RentPayment(models.Model):
})],
'line_ids': [
(0, 0, {
'account_id': payment.contract_id.accrued_account_id.id,
'account_id': payment.contract_id.revenue_account_id.id,
'debit': 0.0,
'credit': amount,
'name': payment.contract_id.name + ' - ' + payment.contract_id.seq + ' - ' + str(payment.contract_id.date),