In our company, the UOM in our Purchase Order will be different from the UOM in which we receive the item in Purchase Receipt.
E.g. When we place an order for 100 kgs of Material A, the supplier will send the material in 2 bags of 50 Kg each, or 1 bag of 100 kg. We need to be able to record this info in Purchase Receipt. Currently, We cannot do that since the system expects the same UOM in purchase receipt as in purchase order. Of course, we can enter a direct Purchase Receipt, but then it wont be linked to a purchase order.
def validate_with_previous_doc(self):
super(PurchaseReceipt, self).validate_with_previous_doc({
“Purchase Order”: {
“ref_dn_field”: “prevdoc_docname”,
“compare_fields”: [[“supplier”, “=”], [“company”, “=”], [“currency”, “=”]],
},
“Purchase Order Item”: {
“ref_dn_field”: “prevdoc_detail_docname”,
“compare_fields”: [[“project”, “=”], [“uom”, “=”], [“item_code”, “=”]],
“is_child_table”: True
Why is this validation required? As long as the Quantity in Stock UOM in Purchase receipt is validated against the quantity in stock uom in PO, the purpose should be solved, right?
I’m sure many of the users in the community will have this use case. Has anyone been able to find a work around?
Also, I’m not able to think of consequences of removing that validation in the system.