Update end_rental_contract

This commit is contained in:
zainab2097 2024-08-30 12:50:47 +03:00 committed by GitHub
parent 075dc42e8c
commit fd55a8192e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ class PropertyManagementMaintenance(models.Model):
'product_id': line.product_id.id,
'name': origin + ' - ' + str(maintenance.date),
'account_id': line.product_id.property_account_expense_id.id,
'analytic_account_id': maintenance.property_id.analytic_account_id.id if maintenance.analytic_account_id else False,
'analytic_account_id': maintenance.property_id.account_analy_id.id if maintenance.property_id.account_analy_id else False,
'quantity': line.qty,
'price_unit': line.cost,
}))