[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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user