This question has been flagged
1 Reply
2592 Views

I added a one2many field on a view, the purpose of this is to have a view of another object (stock.picking), and not to store data on this other object (stock.picking).

So I made an onchange method that displays data on this one2many field, but when actionning the save button it tries to save the data on the one2many field, is there any solution to override the orm create method, so as to don't save the one2many field data displayed by the onchange ? 

I made the one2many field on readonly=True, it no longer store the data diplayed, but I want to be able to edit this data and at the same time this data not to be stored on DB. 

Avatar
Discard

If you could elaborate why you need it, maybe a better help can be provided. For now, it seems that you are trying to workaround for something and face a stumbling block. Maybe the workaround need to be changed.

Best Answer

Hello Yassine,

According to me you put a one button instead of onchange ,call one "small osv memory wizard" to display your one2many data via default_get.

No need to override the any orm methods.

Thanks

Rohan Nayani(www.tidyway.in)

Avatar
Discard