mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +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',
|
method: 'PATCH',
|
||||||
reloadOnSuccess: true
|
success: function() {
|
||||||
|
reloadBomTable(table);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -81,7 +81,6 @@ class PartCategory(InvenTreeTree):
|
|||||||
|
|
||||||
return query
|
return query
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def item_count(self):
|
def item_count(self):
|
||||||
return self.partcount()
|
return self.partcount()
|
||||||
|
@ -76,7 +76,6 @@ class StockLocation(InvenTreeTree):
|
|||||||
"""
|
"""
|
||||||
return self.stock_item_count(cascade) > 0
|
return self.stock_item_count(cascade) > 0
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def item_count(self):
|
def item_count(self):
|
||||||
""" Simply returns the number of stock items in this location.
|
""" Simply returns the number of stock items in this location.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user