mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-17 18:29:08 +02:00
add gym module
This commit is contained in:
15
gym/models/lead.py
Normal file
15
gym/models/lead.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class CrmLead(models.Model):
|
||||
_inherit = 'crm.lead'
|
||||
|
||||
def _lead_create_contact(self, name, is_company, parent_id=False):
|
||||
res = super(CrmLead, self)._lead_create_contact(name, is_company,
|
||||
parent_id=parent_id)
|
||||
for lead in res:
|
||||
lead.customer = True
|
||||
lead.is_member = True
|
||||
return res
|
||||
Reference in New Issue
Block a user