From e88a95e20eb45c810e6ed6d89712b3a96ad5ff8f Mon Sep 17 00:00:00 2001 From: "Mohamed M. Hagag" Date: Sat, 23 Nov 2019 16:52:20 +0200 Subject: [PATCH] Fix #128 Fix #128 --- 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: