Merge branch 'pawan_branch' into 'development'

Pawan branch

See merge request prakash.jain/cor-odoo!30
This commit is contained in:
pawan.sharma 2020-12-25 04:56:50 -08:00
commit da3cd83cda
1 changed files with 2 additions and 1 deletions

View File

@ -31,8 +31,9 @@ class Lead(models.Model):
('phone_uniq', 'unique(phone)', "Phone No already exists !"),
('email_from_uniq', 'unique(email_from)', "Email ID already exists !"),
]
@api.onchange('type')
def get_admin_login(self):
print('11111111111', self.env.context.get('uid'))
group_list = self.env.ref('base.group_erp_manager')
if (self.env.context.get('uid') in group_list.users.ids):
self.admin_user = True