Merge PR #197 into 13.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-01-20 12:26:13 +00:00

View File

@@ -13,8 +13,9 @@ class WebsiteForm(WebsiteForm):
res = super().insert_record(request, model, values, custom, meta) res = super().insert_record(request, model, values, custom, meta)
# Add the customer to the followers, the same as when creating # Add the customer to the followers, the same as when creating
# an RMA from a sales order in the portal. # an RMA from a sales order in the portal.
rma = request.env["rma"].browse(res).sudo() if model.model == "rma":
rma.message_subscribe([rma.partner_id.id]) rma = request.env["rma"].sudo().browse(res)
rma.message_subscribe([rma.partner_id.id])
return res return res