[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
This commit is contained in:
Simon Lejeune
2017-10-09 17:23:30 +02:00
parent 03a2a57163
commit 9d5c1801bb
+1 -1
View File
@@ -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',