[MERGE] forward port branch saas-14 up to 7c8f335988

This commit is contained in:
Christophe Simonis
2018-06-14 19:19:14 +02:00
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -9,6 +9,8 @@ class ResPartner(models.Model):
event_count = fields.Integer("Events", compute='_compute_event_count', help="Number of events the partner has participated.")
def _compute_event_count(self):
if not self.user_has_groups('event.group_event_user'):
return
for partner in self:
partner.event_count = self.env['event.event'].search_count([('registration_ids.partner_id', 'child_of', partner.ids)])
-1
View File
@@ -54,7 +54,6 @@ The Dashboard for the Sales Manager will include
'security/sale_security.xml',
'security/ir.model.access.csv',
'wizard/sale_make_invoice_advance_views.xml',
'views/account_config_settings_views.xml',
'views/sale_views.xml',
'views/sales_team_views.xml',
'views/res_partner_views.xml',