fix: Dependant sle logic fixes (#24489)

* fix: Dependant sle logic fixes

* fix: negative qty validation

* fix: Travis fixes
This commit is contained in:
Nabin Hait
2021-02-02 22:03:07 +05:30
committed by GitHub
parent 7d64a291b8
commit 7177579051
10 changed files with 29 additions and 51 deletions

View File

@@ -16,7 +16,6 @@ class ProductFiltersBuilder:
def get_field_filters(self):
filter_fields = [row.fieldname for row in self.doc.filter_fields]
print('FILTERS', self.doc.filter_fields)
meta = frappe.get_meta('Item')
fields = [df for df in meta.fields if df.fieldname in filter_fields]
@@ -53,7 +52,6 @@ class ProductFiltersBuilder:
def get_attribute_fitlers(self):
attributes = [row.attribute for row in self.doc.filter_attributes]
print('ATTRIBUTES', attributes)
attribute_docs = [
frappe.get_doc('Item Attribute', attribute) for attribute in attributes
]