[FIX] purchase: removed annoying deprecation warning on trg_trigger

bzr revid: qdp-launchpad@openerp.com-20130906085903-2cmc6fckttdyw7xf
This commit is contained in:
Quentin (OpenERP) 2013-09-06 10:59:03 +02:00
parent 0dc363f7d4
commit f0f8fcb46e
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ class stock_move(osv.osv):
if isinstance(ids, (int, long)):
ids = [ids]
res = super(stock_move, self).write(cr, uid, ids, vals, context=context)
wf_service = netsvc.LocalService('workflow')
from openerp import workflow
for id in ids:
wf_service.trg_trigger(uid, 'stock.move', id, cr)
workflow.trg_trigger(uid, 'stock.move', id, cr)
return res
#