diff --git a/cor_custom/__pycache__/__init__.cpython-36.pyc b/cor_custom/__pycache__/__init__.cpython-36.pyc
new file mode 100644
index 0000000..b7cf6e4
Binary files /dev/null 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
new file mode 100644
index 0000000..422747f
Binary files /dev/null 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
new file mode 100644
index 0000000..9b82c07
Binary files /dev/null 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
new file mode 100644
index 0000000..4111b84
Binary files /dev/null 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
new file mode 100644
index 0000000..6823899
Binary files /dev/null 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
new file mode 100644
index 0000000..fbb1bcd
Binary files /dev/null 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
new file mode 100644
index 0000000..aa4772f
Binary files /dev/null and b/cor_custom/models/__pycache__/models.cpython-36.pyc differ
diff --git a/cor_custom/models/__pycache__/product.cpython-36.pyc b/cor_custom/models/__pycache__/product.cpython-36.pyc
new file mode 100644
index 0000000..6ef2171
Binary files /dev/null and b/cor_custom/models/__pycache__/product.cpython-36.pyc differ
diff --git a/cor_custom/models/__pycache__/project.cpython-36.pyc b/cor_custom/models/__pycache__/project.cpython-36.pyc
new file mode 100644
index 0000000..f40c6f5
Binary files /dev/null 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
new file mode 100644
index 0000000..4caf09c
Binary files /dev/null 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 19b6a5b..59addf2 100755
--- a/cor_custom/models/crm_lead.py
+++ b/cor_custom/models/crm_lead.py
@@ -23,9 +23,26 @@ class Lead(models.Model):
client_folder = fields.Char(string='Client Folder')
start_date = fields.Date(string='Start Date')
close_date = fields.Date(string='Close Date')
+ admin_user = fields.Boolean(compute='get_admin_login', default=False)
_sql_constraints = [
('phone_uniq', 'unique(phone)', "Phone No already exists !"),
('email_from_uniq', 'unique(email_from)', "Email ID already exists !"),
]
+ def get_admin_login(self):
+ self_login = self.search([('id', '=', self.id)])
+ group_list = self.env.ref('base.group_erp_manager')
+ print('1111', self_login)
+ print('2222', group_list)
+ for record in self_login:
+ print('333333333', record.user_id.id, self.env.context.get('uid'),
+ self.env.context.get('uid') in group_list.users.ids)
+ if (record.user_id.id == self.env.context.get('uid')) or (
+ self.env.context.get('uid') in group_list.users.ids):
+ print('44444444444', record.user_id.id, self.env.context.get('uid'), self.env.context.get('uid') in group_list.users.ids)
+ record.admin_user = True
+ else:
+ print('55555555555555555')
+ record.admin_user = False
+
diff --git a/cor_custom/views/crm_view.xml b/cor_custom/views/crm_view.xml
index 8569f20..1062626 100755
--- a/cor_custom/views/crm_view.xml
+++ b/cor_custom/views/crm_view.xml
@@ -32,10 +32,6 @@
}"
/>
-
@@ -53,13 +49,16 @@
-
+
+
+
-
+
diff --git a/cor_custom/wizard/__pycache__/__init__.cpython-36.pyc b/cor_custom/wizard/__pycache__/__init__.cpython-36.pyc
new file mode 100644
index 0000000..3b9bd93
Binary files /dev/null and b/cor_custom/wizard/__pycache__/__init__.cpython-36.pyc differ
diff --git a/cor_custom/wizard/__pycache__/crm_opportunity_to_quotation.cpython-36.pyc b/cor_custom/wizard/__pycache__/crm_opportunity_to_quotation.cpython-36.pyc
new file mode 100644
index 0000000..b7f9e29
Binary files /dev/null and b/cor_custom/wizard/__pycache__/crm_opportunity_to_quotation.cpython-36.pyc differ
diff --git a/cor_custom/wizard/__pycache__/project_create_sale_order.cpython-36.pyc b/cor_custom/wizard/__pycache__/project_create_sale_order.cpython-36.pyc
new file mode 100644
index 0000000..b618778
Binary files /dev/null and b/cor_custom/wizard/__pycache__/project_create_sale_order.cpython-36.pyc differ