Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6703 Prikazi
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
jan. 22
1914
0
nov. 17
6085
1
okt. 15
6719
1
sep. 25
274
1
sep. 25
491