[IMP]GOLEM Member : do not return pivot view per default

This commit is contained in:
Fabien BOURGEOIS 2019-01-21 11:16:01 +01:00
parent 48507f10d6
commit 6482489aa9

View File

@ -59,23 +59,23 @@ class GolemMemberAnalysis(models.TransientModel):
ref = u'golem_member.golem_member_analysis_pivot_age_start_gender'
elif rec.analyse_type == 'area':
ref = u'golem_member.golem_member_analysis_pivot_age_start_area'
else: # Tag
elif rec.analyse_type == 'tag':
ref = u'golem_member.golem_member_analysis_pivot_age_start_tag'
elif rec.age_computing == 'season_end':
if rec.analyse_type == 'gender':
ref = u'golem_member.golem_member_analysis_pivot_age_end_gender'
elif rec.analyse_type == 'area':
ref = u'golem_member.golem_member_analysis_pivot_age_end_area'
else: # Tag
elif rec.analyse_type == 'tag':
ref = u'golem_member.golem_member_analysis_pivot_age_end_tag'
else: # now
if rec.analyse_type == 'gender':
ref = u'golem_member.golem_member_analysis_pivot_age_now_gender'
elif rec.analyse_type == 'area':
ref = u'golem_member.golem_member_analysis_pivot_age_now_area'
else: # Tag
elif rec.analyse_type == 'tag':
ref = u'golem_member.golem_member_analysis_pivot_age_now_tag'
return self.env.ref(ref)
return self.env.ref(ref, False)