← Back to team overview

openerp-expert-accounting team mailing list archive

Re: Invoice numbering

 

A Dimecres, 13 de gener de 2010, Ferdinand Gassauer va escriure:
> - the prefix %(year)s is derived from calendar year - so a limited usage
>  is  given.

We have the same problem here, so I think it's worth fixing. It shouldnt be 
hard, maybe something like %(param_year)s, should be provided and when a new 
sequence number is required it should be called with something like:

self.pool.get('ir.sequence').get(cr, uid, 'account.invoice.' + invtype, 
invoice.date_invoice )

Instead of plain:

self.pool.get('ir.sequence').get(cr, uid, 'account.invoice.' + invtype)


-- 
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18



References