[REV] crm: remove unnecessary sudo

Revert "[FIX] crm: allow regular salesman to convert and merge opportunities"
This reverts commit 24db93c0e6b88f89fdf03d63afee05fc858ed977.

Indeed adding a sudo at the end of merge process is a strange way to fix
an unexplained issue about "similar emails". CRM code has been cleaned
since v14+ and flows should not gain random sudo trying to solve an
undefined problem.

closes odoo/odoo#75385

X-original-commit: b4fa19376eb50bf07b5753b4664fcad4d637bcec
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Thibault Delavallée
2021-08-20 12:08:26 +00:00
parent 6231608961
commit 2f21e04e63
+1 -1
View File
@@ -135,7 +135,7 @@ class Lead2OpportunityPartner(models.TransientModel):
'user_id': self.user_id.id,
'team_id': self.team_id.id,
})
(to_merge - result_opportunity).sudo().unlink()
(to_merge - result_opportunity).unlink()
return result_opportunity
def _action_convert(self):