This commit is contained in:
zainab8585 2024-09-10 10:03:34 +02:00
parent 981f3d49ce
commit da237a315a
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ class RentPayment(models.Model):
line_invoice.append((0, 0, {
'name': 'قيمة الإيجار ' + ' - ' + str(payment.contract_id.name or '') + ' - ' + str(self.property_id.name or '') + ' - ' + unit_name + ' - ' + str(self.name or '') + ' - ' + str(payment.code or '') + ' - ' + str(payment.due_date or ''),
'quantity': 1.0,
'price_unit': self.amount,
'account_id': payment.contract_id.revenue_account_id.id,
'analytic_account_id': payment.property_id.account_analy_id.id if payment.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