From 1e038ee7481f995b8b69975ede9fa0bca9b1d21a Mon Sep 17 00:00:00 2001 From: Carlos Dauden Date: Wed, 13 Sep 2017 12:37:47 +0200 Subject: [PATCH] [9.0][IMP] partner_financial_risk: Add track visibility to credit limit --- partner_financial_risk/__openerp__.py | 2 +- partner_financial_risk/models/res_partner.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/partner_financial_risk/__openerp__.py b/partner_financial_risk/__openerp__.py index a23c078d5..c38b2eae7 100644 --- a/partner_financial_risk/__openerp__.py +++ b/partner_financial_risk/__openerp__.py @@ -5,7 +5,7 @@ { 'name': 'Partner Financial Risk', 'summary': 'Manage partner risk', - 'version': '9.0.1.0.1', + 'version': '9.0.1.0.2', 'category': 'Sales Management', 'license': 'AGPL-3', 'author': 'Tecnativa, Odoo Community Association (OCA)', diff --git a/partner_financial_risk/models/res_partner.py b/partner_financial_risk/models/res_partner.py index 6f1dd6f34..f4e2297bb 100644 --- a/partner_financial_risk/models/res_partner.py +++ b/partner_financial_risk/models/res_partner.py @@ -56,6 +56,7 @@ class ResPartner(models.Model): help='It Indicate if partner risk exceeded') credit_policy = fields.Char() risk_allow_edit = fields.Boolean(compute='_compute_risk_allow_edit') + credit_limit = fields.Float(track_visibility='onchange') @api.multi def _compute_risk_allow_edit(self):