diff --git a/addons/portal/models/portal_mixin.py b/addons/portal/models/portal_mixin.py index f3e86d80ccd..1ff8a2319a0 100644 --- a/addons/portal/models/portal_mixin.py +++ b/addons/portal/models/portal_mixin.py @@ -62,9 +62,9 @@ class PortalMixin(models.AbstractModel): def _notify_get_groups(self): access_token = self._portal_ensure_token() - customer = self['partner_id'] groups = super(PortalMixin, self)._notify_get_groups() - if access_token and customer: + if access_token and 'partner_id' in self._fields and self['partner_id']: + customer = self['partner_id'] additional_params = { 'access_token': self.access_token, } diff --git a/doc/cla/corporate/tecnativa.md b/doc/cla/corporate/tecnativa.md index 5249fe08571..8f3bd06dcc9 100644 --- a/doc/cla/corporate/tecnativa.md +++ b/doc/cla/corporate/tecnativa.md @@ -21,3 +21,5 @@ David Vidal david.vidal@tecnativa.com https://github.com/chienandalu Cristina Martín cristina.martin@tecnativa.com https://github.com/cristinamartinrod (up to 2019-04-30) Ernesto Tejeda ernesto.tejeda@tecnativa.com https://github.com/ernestotejeda Alexandre Díaz alexandre.diaz@tecnativa.com https://github.com/Tardo +Víctor Martínez victor.martinez@tecnativa.com https://github.com/victoralmau +João Marques joao.marques@tecnativa.com https://github.com/joao-p-marques