Browse Source

[9.0][IMP] partner_financial_risk: Add track visibility to credit limit

pull/473/head
Carlos Dauden 7 years ago
parent
commit
1e038ee748
  1. 2
      partner_financial_risk/__openerp__.py
  2. 1
      partner_financial_risk/models/res_partner.py

2
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)',

1
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):

Loading…
Cancel
Save