> I believe there is a generic need to create lot numbers with a sequence
> defined. Indeed nantic has a module which allows to configure the
> sequence based on the product or on the category [1].
> 
> I will be very happy if we find a generic solution that can be part of
> tryton.

Indeed my solution is simpler (only one sequence).

> 
> We use states to save pyson states which. If you want to make it always
> readonly you can do:
> 
>     @classmethod
>     def __setup__(cls):
>         super(Lot, cls).__setup__()
>         cls.number.readonly = True

> [1] https://bitbucket.org/nantic/trytond-stock_lot_sequence/src
> 
> -- 
> Sergi Almacellas Abellana
> www.koolpi.com
> Twitter: @pokoli_srk

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/2370207f-fee6-4834-b5e0-d7e136e4b95d%40googlegroups.com.

Reply via email to