BOM table now refreshes the table rather than the page

This commit is contained in:
Oliver Walters 2019-09-08 19:24:08 +10:00
parent b554af5f10
commit 0d6a3d3b28
3 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,9 @@ function loadBomTable(table, options) {
},
{
method: 'PATCH',
reloadOnSuccess: true
success: function() {
reloadBomTable(table);
}
}
);
});

View File

@ -81,7 +81,6 @@ class PartCategory(InvenTreeTree):
return query
@property
def item_count(self):
return self.partcount()

View File

@ -76,7 +76,6 @@ class StockLocation(InvenTreeTree):
"""
return self.stock_item_count(cascade) > 0
@property
def item_count(self):
""" Simply returns the number of stock items in this location.