mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
BOM table now refreshes the table rather than the page
This commit is contained in:
parent
b554af5f10
commit
0d6a3d3b28
@ -330,7 +330,9 @@ function loadBomTable(table, options) {
|
||||
},
|
||||
{
|
||||
method: 'PATCH',
|
||||
reloadOnSuccess: true
|
||||
success: function() {
|
||||
reloadBomTable(table);
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
|
@ -81,7 +81,6 @@ class PartCategory(InvenTreeTree):
|
||||
|
||||
return query
|
||||
|
||||
|
||||
@property
|
||||
def item_count(self):
|
||||
return self.partcount()
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user