forked from Yaltik/golem
[FIX]GOLEM Member / Registration analysis fix on reusing current
Current analysis will add / double results with now truncate.
This commit is contained in:
parent
a533a6b7f8
commit
1561a47a83
@ -18,7 +18,7 @@
|
|||||||
{
|
{
|
||||||
'name': 'GOLEM Activity Member Registrations',
|
'name': 'GOLEM Activity Member Registrations',
|
||||||
'summary': 'GOLEM Activities Member Registrations management',
|
'summary': 'GOLEM Activities Member Registrations management',
|
||||||
'version': '10.0.1.6.0',
|
'version': '10.0.1.6.1',
|
||||||
'category': 'GOLEM',
|
'category': 'GOLEM',
|
||||||
'author': 'Fabien Bourgeois, Michel Dessenne',
|
'author': 'Fabien Bourgeois, Michel Dessenne',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -79,6 +79,11 @@ class GolemActivityRegistrationAnalysisWizard(models.TransientModel):
|
|||||||
""" registration analyse """
|
""" registration analyse """
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
analysis_rec = self[0]
|
analysis_rec = self[0]
|
||||||
|
# Remove existing analysis lines for current analysis
|
||||||
|
self.env['golem.member.analysis'].search(
|
||||||
|
[('resgistration_analysis_id', '=', analysis_rec.id)]
|
||||||
|
).unlink()
|
||||||
|
|
||||||
registrations = analysis_rec.get_registrations()
|
registrations = analysis_rec.get_registrations()
|
||||||
if registrations:
|
if registrations:
|
||||||
for registration in registrations:
|
for registration in registrations:
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
'name': 'GOLEM non-profit members',
|
'name': 'GOLEM non-profit members',
|
||||||
'summary': 'Extends Odoo contacts for MJC',
|
'summary': 'Extends Odoo contacts for MJC',
|
||||||
'description': 'Extends Odoo contacts for MJC',
|
'description': 'Extends Odoo contacts for MJC',
|
||||||
'version': '10.0.2.7.1',
|
'version': '10.0.2.7.2',
|
||||||
'category': 'GOLEM',
|
'category': 'GOLEM',
|
||||||
'author': 'Fabien Bourgeois, Michel Dessenne',
|
'author': 'Fabien Bourgeois, Michel Dessenne',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -91,6 +91,11 @@ class GolemMemberAnalysis(models.TransientModel):
|
|||||||
""" members analyse """
|
""" members analyse """
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
analysis_rec = self[0]
|
analysis_rec = self[0]
|
||||||
|
# Remove existing analysis lines for current analysis
|
||||||
|
self.env['golem.member.analysis'].search(
|
||||||
|
[('member_analysis_id', '=', analysis_rec.id)]
|
||||||
|
).unlink()
|
||||||
|
|
||||||
members = analysis_rec.get_members()
|
members = analysis_rec.get_members()
|
||||||
if members:
|
if members:
|
||||||
for member in members:
|
for member in members:
|
||||||
|
Loading…
Reference in New Issue
Block a user