From 90083cf8f4b1c15ab26074a743b74f05ba06f7ff Mon Sep 17 00:00:00 2001 From: SHEREEF PT Date: Mon, 6 Nov 2017 12:14:17 +0530 Subject: [PATCH] [CHNG] Removed Depends decorator --- account_limit/__manifest__.py | 4 ++-- account_limit/models/account.py | 1 - account_limit/views/account_credit_limit_view.xml | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/account_limit/__manifest__.py b/account_limit/__manifest__.py index 5c2a440b2..a5bfc5c4d 100644 --- a/account_limit/__manifest__.py +++ b/account_limit/__manifest__.py @@ -24,8 +24,8 @@ { 'name': 'Account Credit Limit', - 'version': '10.0.1.0', - 'summary': """Generate warning message when credit limit of an account is exceed.""", + 'version': '10.0.2.0', + 'summary': """Generate Warning Message When Credit Limit of an Account is Exceed.""", 'description': """Account credit limit is a handy plugin for Odoo Accounting module to set a Credit limit for each Account. The module will bring new fields total Credit, Debit and Balance in ‘Accounts tree view’ and ‘Account form view’. The module also produce a warning message while making journal entries which will exceed diff --git a/account_limit/models/account.py b/account_limit/models/account.py index 2a852f036..7295d2026 100644 --- a/account_limit/models/account.py +++ b/account_limit/models/account.py @@ -28,7 +28,6 @@ from odoo.exceptions import Warning class AccountAccount(models.Model): _inherit = 'account.account' - @api.depends('credit', 'debit', 'balance') @api.multi def get_credit_debit_balance(self): print "get_credit_debit_balance", self diff --git a/account_limit/views/account_credit_limit_view.xml b/account_limit/views/account_credit_limit_view.xml index 43b8836a8..34f6c8e34 100644 --- a/account_limit/views/account_credit_limit_view.xml +++ b/account_limit/views/account_credit_limit_view.xml @@ -21,8 +21,8 @@ - - + +