How I can resolve this problem ?
Cette question a été signalée
2
Réponses
10600
Vues
How I can resolve this problem ?
I got the same error when using the method trg_validate with the customized button 'signal_draft_depheadapr' :
wf_service.trg_validate(uid, 'purchase.order', id, 'signal_draft_depheadapr', cr)
After trace I discovered that the 'id' parameter is an object one and not an integer id, I replace the above line with the following line and it worked:
wf_service.trg_validate(uid, 'purchase.order', po_obj.id, 'signal_draft_depheadapr', cr)
The exact line that caused this problem was the cr.execute method
So check your code, the reason of this was a wrong parameter type you passed.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire
Can you please more specify ? At where or code you have done ?