[MERGE] Forward-port 7.0 up to 38905d686f

This commit is contained in:
Olivier Dony 2016-04-11 14:23:02 +02:00
commit bf163700e4
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ class res_partner(osv.Model, format_address):
result = super(res_partner, self).write(vals)
for partner in self:
if any(u.has_group('base.group_user') for u in partner.user_ids):
if any(u.has_group('base.group_user') for u in partner.user_ids if u != self.env.user):
self.env['res.users'].check_access_rights('write')
self._fields_sync(partner, vals)
return result