Setting data for One2Many field trough an on_change function

Greetings I’m new to tryton, and I’m not sure if this topic has been reviewed yet, but I need to set data for a One2Many field trough an on_change function so the user can see the information before saving, is it possible and how should be done?.

Thanks for the help and sorry if there I couldn’t express correctly but English is not my native language.

You just have to assign in the on_change the new list of records for the One2Many.
But be careful that the existing record that will not set back the One2Many will be remove and not deleted (see Issue 6430: explode_bom does not delete existing inputs/outputs moves - Tryton issue tracker).

It seems I have been making an error in the definition of the list of records, thanks for the help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.