I have created a small module to update the Employee client records . I have attached the screenshot of the form view . Also created the workflow with states .
In the form view i created one field of one2many type , and i wann to display all the previous records created whn the state is reached to approved .
How to achieve this .
You have to create a model that memorize the historical information of the record (either exactly the same set of fields or just select fields + some version indicator). Then in every changes that you want to log (you can inherit create, write, and unlink method for this purpose) save a copy of the old values into that historical informatioin model.
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: 8/27/14, 5:52 AM|
|Seen: 1060 times|
|Last updated: 3/16/15, 8:10 AM|