add gym module

This commit is contained in:
sonal
2020-08-04 16:50:06 +05:30
parent d32f648b75
commit 29f684db39
219 changed files with 5030 additions and 0 deletions

15
gym/models/lead.py Normal file
View 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