I appreciate, if anyone can let me know how to override the validation rule written in
self.validate_value(field, condition, prevdoc_values[field], doc)
for Purchase Order.
Actually, if I am able to override it, then I will be able to solve a gap currently exists in the system.
Supplier Quotation doesn’t have Purchase UOM therefore we need to mention the rate in stock UOM instead of Purchase UOM.
Lets take an example:
Item X we used in Each but comes in pack of 10
Now, when I create Supplier Quotation, I need to mention the rate of each but when I create Purchase Order, I need to mention the Purchase UOM as well as rate in Purchase UOM
1 qty. rate is 12.50
1 pack rate is 125.0
But, at the time of Purchase Order, it doesn’t allow me to save the Purchase Order and run this validation rule because it is checking the rate of previous document with rate of Purchase Order.