fix(asset): do not validate warehouse on asset purchase
This commit is contained in:
parent
e401ad3f90
commit
136466d255
@ -226,7 +226,7 @@ class PurchaseInvoice(BuyingController):
|
||||
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}").
|
||||
format(d.idx, d.item_code, self.company), exc=WarehouseMissingError)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user