Migrate Selection Field to Many2One


(Luis) #1

Greetings.

I need to migrate some Selection fields to Many2one. It is possible? And in the case if it’s, which is the proper manner?

Thanks


(Cédric Krier) #2

Tryton can not do that automatically. You will have to write your own migration code in the Model.__register__ method.


(Luis) #3

Thanks.

Is there documentation about the method? Or an example for this specific case?


(Cédric Krier) #4

It is mainly about writing the proper SQL queries. The TableHandle provides some helper for common operations.