From 9d5c1801bb6718bfc3dfa0db535ee70060f4ec5c Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Mon, 9 Oct 2017 17:20:44 +0200 Subject: [PATCH] [FIX] mrp: _run_manufacture There was a traceback when posting the message after creating the manufacturing order because we rendered the 'mail.message_origin_link' with an id as origin and not a recordset. opw 775295 --- addons/mrp/models/procurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/models/procurement.py b/addons/mrp/models/procurement.py index 61c654c4dd8..0942601cb3f 100644 --- a/addons/mrp/models/procurement.py +++ b/addons/mrp/models/procurement.py @@ -26,7 +26,7 @@ class ProcurementRule(models.Model): orderpoint = values.get('orderpoint_id') if orderpoint: production.message_post_with_view('mail.message_origin_link', - values={'self': production, 'origin': orderpoint.id}, + values={'self': production, 'origin': orderpoint}, subtype_id=self.env.ref('mail.mt_note').id) if origin_production: production.message_post_with_view('mail.message_origin_link',