[MERGE] forward port branch saas-14 up to 7c8f335988
This commit is contained in:
@@ -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)])
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user