Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6356 Vistas
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 22
1595
0
nov 17
5736
1
oct 15
6406
1
ago 25
83
2
ago 25
2227