Dear All,
I have added validation on sales order form and validation is working fine. And this validation should happen if user modifies something on the form. We need to allow user modifying sales order, with in certain range of date. other wise we need to throw an error message saying no changes allowed on sales order. Every thing is fine, but if user doesn't modify any thing on sales order form, if he simply press save button, still validation is happening. And throwing error message 'no changes allowed'.
We know that validateWrite() and Write() methods get call, when we click save button. If we modify something on form and if we click save, then calling of validateWrite() and Write() is ok. If we don't modify anything on form and if we click save, still system calls validateWrite() and Write() methods.
Any body know how to check, whether the record is modified or not. It will help me to check this condition, before checking my validation.
Thanks,
Akshay
*This post is locked for comments
I have the same question (0)