Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Mandatory "edit summary" when editing a record

By
Peter Nietz
on 1/4/16, 9:41 AM 320 views

We have implemented a custom data model in an Odoo module. The data in this model is quite critical for our company. Every change to a record has to be logged, such that we can always understand what has changed when, how, by whom and why.

We have already found a very convenient solution for the first 4 tasks (what, when, how and by whom). Our model inherits from "mail.thread" and all relevant data fields have "track_visibility" set to "onchange". In combination with the according "oe_chatter" snippet in the form definition this works like a charm. Any creation or edit of a record is logged... and the log indicates not only the names of the changed fields but also explicitly the previous and the new value of the value. Just perfect!

However this information does not always answer the question of "why". Sometimes just knowing that value X has been changed from 11 to 47 does not explain the intention of the change. Sure, one could ask the person who has made the change (as this is logged). But what if the person is on vacation or the change has been done long ago (and nobody remembers the reason anymore)?

Hence our question: Is it possible to have some "edit summary" field that has to be filled in whenever a record is being edited (or maybe only when specific fields change)? Such "edit summaries" are commonly known from wiki systems. Are workflows related to this problem?



 


 


Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/4/16, 9:41 AM
Seen: 320 times
Last updated: 1/4/16, 9:41 AM