Skip to Content
Menu
This question has been flagged
1 Reply
5399 Views
Best Answer

For OpenERP v7:

import netsvc
...
wf_service = netsvc.LocalService('workflow')
wf_service.trg_validate

For Odoo v8 the code change a little

from openerp import workflow
...
workflow.trg_validate(uid, 'account.invoice', id, 'invoice_cancel', cr)
Avatar
Discard
Related Posts Replies Views Activity
0
Jan 22
826
0
Nov 17
4854
1
Oct 15
5440
0
Dec 24
11
2
Nov 24
262