diff --git a/crm_capital/models/crm_lead.py b/crm_capital/models/crm_lead.py index 0b0a517f2..6e3978fe6 100644 --- a/crm_capital/models/crm_lead.py +++ b/crm_capital/models/crm_lead.py @@ -12,6 +12,8 @@ class CrmLead(models.Model): 'res.country', string="Capital country", help="Country of origin of the capital of this company") capital_registered = fields.Integer(string="Capital registered") + turnover_range = fields.Many2one(comodel_name='crm.turnover_range') + turnover_number = fields.Integer() def _lead_create_contact(self, cr, uid, lead, name, is_company, parent_id=False, context=None): @@ -23,6 +25,8 @@ class CrmLead(models.Model): self.pool['res.partner'].write( cr, uid, partner_id, { 'capital_country': lead.capital_country.id, - 'capital_registered': lead.capital_registered + 'capital_registered': lead.capital_registered, + 'turnover_range': lead.turnover_range.id, + 'turnover_number': lead.turnover_number, }, context=context) return partner_id diff --git a/crm_capital/models/res_partner.py b/crm_capital/models/res_partner.py index 8eb85d32e..ded600eeb 100644 --- a/crm_capital/models/res_partner.py +++ b/crm_capital/models/res_partner.py @@ -12,3 +12,5 @@ class ResPartner(models.Model): 'res.country', string="Capital country", help="Country of origin of the capital of this company") capital_registered = fields.Integer(string="Capital registered") + turnover_range = fields.Many2one(comodel_name='crm.turnover_range') + turnover_number = fields.Integer()