On 29/12/09 19:18 +0100, Carlos Perelló Marín wrote:
> Hi,
> 
> I'm not really sure why this feature would be useful, but I saw 
> something similar in OpenBravoPOS, the id on their tables are characters 
> instead of integers and they use UUID values as the IDs.
> 
> I don't really like that solution, specially for the fact that the key 
> size is bigger and thus, the database size would grow a lot with many 
> rows, but maybe it would help you in this use case...
> 

I don't want to use UUID because as you said they are too big.
The useful of this kind of sequence (only number) is to not have a leak of
information. Like the number of generated document or if there is a hole
between two documents etc.

How I see the functionnality:

 - adding a selection field on ir.sequence with ('ordered', 'random')
 - hide number_next, number_increment and padding if random is selected
 - add and show random_size

So user could choose between ordered or random sequence for document.

But for now, the main issue is the generation.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email: [email protected]
Jabber: [email protected]
Website: http://www.b2ck.com/
twitter: http://twitter.com/cedrickrier
identi.ca: http://identi.ca/cedrickrier

Attachment: pgpwFbU3iN8a9.pgp
Description: PGP signature

Reply via email to