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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/12/14, 6:05 AM|
|Seen: 644 times|
|Last updated: 3/16/15, 8:10 AM|