[UPDATE]UPDATE

This commit is contained in:
zainab8585 2024-08-20 10:09:43 +02:00
parent 05a38108d1
commit 25bd78a545
1 changed files with 1 additions and 1 deletions

View File

@ -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)