Update end_rental_contract.py
This commit is contained in:
parent
405aaffa9a
commit
9fe6e2476f
|
|
@ -283,7 +283,7 @@ class PropertyManagementMaintenance(models.Model):
|
||||||
'price_unit': self.hand_cost,
|
'price_unit': self.hand_cost,
|
||||||
# 'account_id': maintenance.contract_id.revenue_account_id.id,
|
# '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,
|
'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 = {
|
invoice_vals = {
|
||||||
'ref': maintenance.name,
|
'ref': maintenance.name,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue