Merge pull request #826 from expsa/payment_task

Update rental_contract.py
This commit is contained in:
zainab2097 2024-08-20 16:09:52 +03:00 committed by GitHub
commit eb2483d8f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ class RentalContract(models.Model):
rent_amount_per_payment = raise_line.rent_amount_after_raise / (rent_factor / months)
# Calculate the amounts
self._cr.execute('INSERT INTO rent_payment \
self._cr.execute('INSERT INTO rent_payment \
(name, contract_id, due_date, property_id, amount, water_cost, service_cost, user_id, company_id, state, tax_id, untaxed_amount, tax_amount) \
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING id',
(