[FIX] mrp: call message_post separately
message_post accepts only one id CLA signature for igallart done at #15625 Closes #15625
This commit is contained in:
parent
333e7d1f9e
commit
48cebafdaf
|
@ -784,7 +784,8 @@ class mrp_production(osv.osv):
|
||||||
proc_obj = self.pool.get("procurement.order")
|
proc_obj = self.pool.get("procurement.order")
|
||||||
procs = proc_obj.search(cr, uid, [('production_id', 'in', ids)], context=context)
|
procs = proc_obj.search(cr, uid, [('production_id', 'in', ids)], context=context)
|
||||||
if procs:
|
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)
|
proc_obj.write(cr, uid, procs, {'state': 'exception'}, context=context)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue