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.

> I tried Sequence.write([seq.id], {'number_next_internal': 10,})
> but I get:
> > TypeError: write() missing 1 required positional argument: 'values'

If you call raw API from proteus, you must always add the context as
last parameter.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
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/20170920221120.GN3532%40kei.

Reply via email to