Skip to content
Snippets Groups Projects
Commit 9d5c1801 authored by Simon Lejeune's avatar Simon Lejeune
Browse files

[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
parent 03a2a571
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment