[TYPO]GOLEM Season print...
This commit is contained in:
parent
e161912f68
commit
fecb073801
@ -78,7 +78,6 @@ class GolemSeason(models.Model):
|
|||||||
@api.returns('self', lambda rec: rec.id)
|
@api.returns('self', lambda rec: rec.id)
|
||||||
def create(self, values):
|
def create(self, values):
|
||||||
""" If the season if the first one created, it must be by default """
|
""" If the season if the first one created, it must be by default """
|
||||||
print values
|
|
||||||
if self.search_count([]) == 0:
|
if self.search_count([]) == 0:
|
||||||
values['is_default'] = True
|
values['is_default'] = True
|
||||||
return super(GolemSeason, self).create(values)
|
return super(GolemSeason, self).create(values)
|
||||||
|
Loading…
Reference in New Issue
Block a user