Le 21/09/2017 à 00:11, Cédric Krier a écrit :
On 2017-09-20 19:26, Richard PALO wrote:
I'm curious how to currectly set the next_number_internal for an ir.sequence,
namely for reconciliations using proteus.

Setting, for example, seq.prefix='A' works just fine but 
seq.number_next_internal=10 seems to be a no-op.

Using the tryton client, I can change the sequence manually from the sequences 
form, is that the
only way to do it? Hints on doing so?

You should write 'number_next' which is the field show in the UI.
It is because the sequence could be a SQL sequence and so
number_next_internal will not be used.
... >8

Guess I was misled by the what I saw in the module file sequence.py, namely:

        # Migration from 2.0 rename number_next into number_next_internal
        table.column_rename('number_next', 'number_next_internal')


Seems to work much better! Kudos.

cheers,
--

Richard PALO

--
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/5cb0e2f0-8158-abaa-e699-284261c403b6%40free.fr.

Reply via email to