interface enhancement fix root - default=True

develop
Andreas Osim 2020-09-30 10:03:50 +02:00
parent 60a1c0706f
commit 5e2a9a6a73
1 changed files with 1 additions and 3 deletions

View File

@ -231,9 +231,7 @@ class Partner(models.Model):
vals['active'] = False
vals['is_company'] = True
vals['portal_pending'] = True
if not vals.get('root'):
vals['root'] = True
vals.setdefault('root',True)
# send mail activity to usergroup(with group 'informieren bei neuem Portalkunden, if new company was created
recordset = self.create(vals)