mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-11 06:17:44 +00:00
fix: do not validate purchase document for composite asset
This commit is contained in:
@@ -624,6 +624,9 @@ class Asset(AccountsController):
|
||||
return records
|
||||
|
||||
def validate_make_gl_entry(self):
|
||||
if self.is_composite_asset:
|
||||
return True
|
||||
|
||||
purchase_document = self.get_purchase_document()
|
||||
if not purchase_document:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user