diff --git a/cor_custom/__pycache__/__init__.cpython-36.pyc b/cor_custom/__pycache__/__init__.cpython-36.pyc index a2ca7f5..6edd45d 100644 Binary files a/cor_custom/__pycache__/__init__.cpython-36.pyc and b/cor_custom/__pycache__/__init__.cpython-36.pyc differ diff --git a/cor_custom/controllers/__pycache__/__init__.cpython-36.pyc b/cor_custom/controllers/__pycache__/__init__.cpython-36.pyc index a4434d0..08513cc 100644 Binary files a/cor_custom/controllers/__pycache__/__init__.cpython-36.pyc and b/cor_custom/controllers/__pycache__/__init__.cpython-36.pyc differ diff --git a/cor_custom/controllers/__pycache__/controllers.cpython-36.pyc b/cor_custom/controllers/__pycache__/controllers.cpython-36.pyc index 38c46b7..97b7b4b 100644 Binary files a/cor_custom/controllers/__pycache__/controllers.cpython-36.pyc and b/cor_custom/controllers/__pycache__/controllers.cpython-36.pyc differ diff --git a/cor_custom/models/__pycache__/__init__.cpython-36.pyc b/cor_custom/models/__pycache__/__init__.cpython-36.pyc index 87a3f96..e256141 100644 Binary files a/cor_custom/models/__pycache__/__init__.cpython-36.pyc and b/cor_custom/models/__pycache__/__init__.cpython-36.pyc differ diff --git a/cor_custom/models/__pycache__/analytic.cpython-36.pyc b/cor_custom/models/__pycache__/analytic.cpython-36.pyc index 9cb7089..b365931 100644 Binary files a/cor_custom/models/__pycache__/analytic.cpython-36.pyc and b/cor_custom/models/__pycache__/analytic.cpython-36.pyc differ diff --git a/cor_custom/models/__pycache__/crm_lead.cpython-36.pyc b/cor_custom/models/__pycache__/crm_lead.cpython-36.pyc index ebeacfd..cff3284 100644 Binary files a/cor_custom/models/__pycache__/crm_lead.cpython-36.pyc and b/cor_custom/models/__pycache__/crm_lead.cpython-36.pyc differ diff --git a/cor_custom/models/__pycache__/models.cpython-36.pyc b/cor_custom/models/__pycache__/models.cpython-36.pyc index 18206e2..d7719ec 100644 Binary files a/cor_custom/models/__pycache__/models.cpython-36.pyc and b/cor_custom/models/__pycache__/models.cpython-36.pyc differ diff --git a/cor_custom/models/__pycache__/project.cpython-36.pyc b/cor_custom/models/__pycache__/project.cpython-36.pyc index 1292587..a02063e 100644 Binary files a/cor_custom/models/__pycache__/project.cpython-36.pyc and b/cor_custom/models/__pycache__/project.cpython-36.pyc differ diff --git a/cor_custom/models/__pycache__/project_overview.cpython-36.pyc b/cor_custom/models/__pycache__/project_overview.cpython-36.pyc index 430c331..b40a866 100644 Binary files a/cor_custom/models/__pycache__/project_overview.cpython-36.pyc and b/cor_custom/models/__pycache__/project_overview.cpython-36.pyc differ diff --git a/cor_custom/models/crm_lead.py b/cor_custom/models/crm_lead.py index 27ff63e..5ce51c9 100755 --- a/cor_custom/models/crm_lead.py +++ b/cor_custom/models/crm_lead.py @@ -8,9 +8,20 @@ class Lead(models.Model): _inherit = 'crm.lead' lead_no = fields.Char(string='Lead ID') + scope = fields.Char(string='Scope (NIS)') professional_support = fields.Char(string='Professional Support') ref_summary_status = fields.Char(string='Referral Summary status') + contract = fields.Selection([('Yes','Yes'),('No','No')], string='Contract') + project_name = fields.Char(string='Project Name') project_scope = fields.Char(string='The scope of the project') + #act_project_manager_id = fields.Many2one('res.users', string='Actual Project Manager') + #project_manager_id = fields.Many2one('res.users', string='Project Manager') client_folder = fields.Char(string='Client Folder') start_date = fields.Date(string='Start Date') close_date = fields.Date(string='Close Date') + + _sql_constraints = [ + ('phone_uniq', 'unique(phone)', "Phone No already exists !"), + ('email_from_uniq', 'unique(email_from)', "Email ID already exists !"), + ] + diff --git a/cor_custom/views/crm_view.xml b/cor_custom/views/crm_view.xml index 11fa30e..98be19b 100755 --- a/cor_custom/views/crm_view.xml +++ b/cor_custom/views/crm_view.xml @@ -6,16 +6,19 @@ crm.lead - - - + + - + + + +