mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user