Mencari Periode Selanjutnya

Periode pembukuan (account.period) menyediakan method next untuk mencari periode selanjutnya.

Syntax

next(cr, uid, period, step, context={})

 

Parameter

cr

Database Cursor

uid

int. User ID

period

resource. Resource dari object account.period

step

int. n periode ke depan

context

dictionary. context

 

Contoh

# mencari res dari account.period
period_id = 5
period = self.pool.get(‘account.period’).browse(cr, uid, [period_id])[0]
period_selanjutnya_id = self.pool.get(‘account.period’).next(cr, uid, period, 1, context)

About these ads
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