[UPDATE]UPDATE
This commit is contained in:
parent
05a38108d1
commit
25bd78a545
|
|
@ -302,7 +302,7 @@ class RentPayment(models.Model):
|
|||
for rec in self:
|
||||
rec.untaxed_amount = round(rec.amount + rec.water_cost + rec.service_cost,2)
|
||||
rec.tax_amount = round(rec.tax_id.amount/100*rec.amount,2)
|
||||
@api.depends('amount', 'water_cost', 'service_cost')
|
||||
@api.depends('amount', 'water_cost', 'service_cost','tax_id')
|
||||
def get_total_amount(self):
|
||||
for rec in self:
|
||||
rec.total_amount = round(rec.untaxed_amount + rec.tax_amount,2)
|
||||
Loading…
Reference in New Issue