Skip to content

Commit

Permalink
Merge pull request #54 from Tecnativa/8.0-partner_event-no_store
Browse files Browse the repository at this point in the history
[8.0][partner_event][FIX] Do not store registration counts.
  • Loading branch information
pedrobaeza committed Jun 16, 2016
2 parents b7ce8d5 + 6ca3852 commit e38ee3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion partner_event/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

{
'name': 'Link partner to events',
'version': '8.0.1.1.0',
'version': '8.0.2.0.0',
'category': 'Marketing',
'author': 'Serv. Tecnol. Avanzados - Pedro M. Baeza, '
'Antiun Ingeniería S.L., '
Expand Down
5 changes: 2 additions & 3 deletions partner_event/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ class ResPartner(models.Model):
string="Event registrations",
comodel_name='event.registration', inverse_name="partner_id")
registration_count = fields.Integer(
string='Event registrations number', compute='_count_registration',
store=True)
string='Event registrations number', compute='_count_registration')
attended_registration_count = fields.Integer(
string='Event attended registrations number',
compute='_count_attended_registration', store=True)
compute='_count_attended_registration')

@api.one
@api.depends('registrations')
Expand Down

0 comments on commit e38ee3c

Please sign in to comment.