Update end_rental_contract.py
This commit is contained in:
parent
8ce9c45a98
commit
57ab6d8849
|
|
@ -62,7 +62,7 @@ class EndOfRent(models.Model):
|
|||
return invoice_vals
|
||||
|
||||
def _prepare_out_refund_invoice_values(self, end, amount):
|
||||
# self.contract_id.partner_id.property_account_receivable_id = end.contract_id.accrued_account_id.id
|
||||
self.contract_id.partner_id.property_account_receivable_id = end.contract_id.accrued_account_id.id
|
||||
invoice_vals = {
|
||||
'ref': end.name,
|
||||
'move_type': 'out_refund',
|
||||
|
|
@ -75,7 +75,7 @@ class EndOfRent(models.Model):
|
|||
'name': end.name + ' - ' + str(end.date),
|
||||
'price_unit': amount,
|
||||
'quantity': 1.0,
|
||||
'account_id': end.contract_id.debit_account_id.id,
|
||||
# 'account_id': end.contract_id.debit_account_id.id,
|
||||
|
||||
})],
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue