commit | b60fad61136d8e85e055e9b3628cccce7302c7bd | [log] [tgz] |
---|---|---|
author | Saqib Ansari <nextchamp.saqib@gmail.com> | Tue Mar 29 10:50:21 2022 +0530 |
committer | Saqib Ansari <nextchamp.saqib@gmail.com> | Tue Mar 29 10:50:21 2022 +0530 |
tree | f3196562e006bcc58bd122bce383af78fd86ef71 | |
parent | 136466d255651ba29be16248e822c2a374114c67 [diff] | |
parent | 760e68b656e4328dbd6f0163182e5704a617714c [diff] |
Merge branch 'develop' of https://github.com/frappe/erpnext into fix-asset-warehouse-validation
diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py index 57bc0a7..84077f6 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py
@@ -250,7 +250,7 @@ def validate_warehouse(self, for_validate=True): if self.update_stock and for_validate: for d in self.get("items"): - if not d.warehouse: + if not d.warehouse and not d.is_fixed_asset: frappe.throw( _( "Row No {0}: Warehouse is required. Please set a Default Warehouse for Item {1} and Company {2}"