From f59503c4c31db3c0cb651ede714a17f56a5cdce6 Mon Sep 17 00:00:00 2001 From: "Mohamed M. Hagag" Date: Wed, 11 Sep 2019 00:41:39 +0200 Subject: [PATCH] Update sale.py --- amount_currency_sale/models/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amount_currency_sale/models/sale.py b/amount_currency_sale/models/sale.py index e4e060a0d..220b5b22b 100644 --- a/amount_currency_sale/models/sale.py +++ b/amount_currency_sale/models/sale.py @@ -9,7 +9,7 @@ class PurchaseCurrency(models.Model): company_currency_amount = fields.Float(string='Company Currency Total', compute='find_amount') - @api.models + @api.model def find_amount(self): """ Function to calculate the total amount in company currency""" for this in self: