OpenERP 5.0.16 Technical Tutorial : Menjalankan Transisi draft -> done Pada Workflow stock.picking Dengan Method draft_validate

Pada prakteknya workflow stock.picking (stock.picking.basic) terkadang terlalu panjang untuk beberapa penerapan stock.picking. Apabila menginginkan workflow dipangkas menjadi hanya 1x validasi (langsung dari draft ke done) tanpa ada pengecekan ketersediaan stok, method draft_validate bisa digunakan.

SINTAKS


draft_validate(cr, uid, ids, *args)

PARAMETER

cr
cursor. Cursor

uid
integer. ID user yang menjalankan method

ids
list. List ID stock.picking yang akan dijalankan transisinya

*args
list. List argumen tambahan

RETURN

boolean. True

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s