From 48cebafdafd7185b7e219fad2154411f4eb31c3f Mon Sep 17 00:00:00 2001 From: Isaac Gallart Bochons Date: Mon, 27 Feb 2017 11:33:43 +0100 Subject: [PATCH] [FIX] mrp: call message_post separately message_post accepts only one id CLA signature for igallart done at #15625 Closes #15625 --- addons/mrp/mrp.py | 3 ++- doc/cla/individual/igallart.md | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 doc/cla/individual/igallart.md diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 5d2f6c36a98..7915a69fbc8 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -784,7 +784,8 @@ class mrp_production(osv.osv): proc_obj = self.pool.get("procurement.order") procs = proc_obj.search(cr, uid, [('production_id', 'in', ids)], context=context) if procs: - proc_obj.message_post(cr, uid, procs, body=_('Manufacturing order cancelled.'), context=context) + for proc in procs: + proc_obj.message_post(cr, uid, proc, body=_('Manufacturing order cancelled.'), context=context) proc_obj.write(cr, uid, procs, {'state': 'exception'}, context=context) return True diff --git a/doc/cla/individual/igallart.md b/doc/cla/individual/igallart.md new file mode 100644 index 00000000000..3bf5a8f735c --- /dev/null +++ b/doc/cla/individual/igallart.md @@ -0,0 +1,11 @@ +Spain, 2017-02-27 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Isaac Gallart Bochons igallart@puntsistemes.es https://github.com/igallart