Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6355 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
1595
0
nov. 17
5736
1
okt. 15
6405
1
avg. 25
83
2
avg. 25
2227