From 9fe6e2476f5270d5e2c7d3956f03e313795fd458 Mon Sep 17 00:00:00 2001 From: zainab2097 <149927291+zainab2097@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:40:26 +0300 Subject: [PATCH] Update end_rental_contract.py --- .../property_management/models/end_rental_contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_realstate/property_management/models/end_rental_contract.py b/odex25_realstate/property_management/models/end_rental_contract.py index caf68f30f..b2fe823de 100644 --- a/odex25_realstate/property_management/models/end_rental_contract.py +++ b/odex25_realstate/property_management/models/end_rental_contract.py @@ -283,7 +283,7 @@ class PropertyManagementMaintenance(models.Model): 'price_unit': self.hand_cost, # 'account_id': maintenance.contract_id.revenue_account_id.id, 'analytic_account_id': maintenance.property_id.account_analy_id.id if maintenance.property_id.account_analy_id else False, - 'tax_ids': [(6, 0, [payment.tax_id.id])] if payment.tax_id else False, # Assigning tax_id to tax_ids + 'tax_ids': [(6, 0, [maintenance.tax_id.id])] if maintenance.tax_id else False, # Assigning tax_id to tax_ids })) invoice_vals = { 'ref': maintenance.name,