diff options
| author | Simon Lejeune <sle@openerp.com> | 2017-10-09 17:20:44 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-10-09 17:23:30 +0200 |
| commit | 9d5c1801bb6718bfc3dfa0db535ee70060f4ec5c (patch) | |
| tree | b219db9b73a7cb555c03906adc7d731630df3392 | |
| parent | 03a2a571636657c90b2d344f2ed83cbe6459c081 (diff) | |
[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
| -rw-r--r-- | addons/mrp/models/procurement.py | 2 |
1 files changed, 1 insertions, 1 deletions
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', |
