mirror of
https://github.com/inventree/InvenTree.git
synced 2026-02-02 03:14:56 +00:00
Fix spelling error (#11230)
* Fix spelling error * Fix another simple typo --------- Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
@@ -1466,7 +1466,7 @@ class StockItem(
|
|||||||
old_status_logical = item.status
|
old_status_logical = item.status
|
||||||
item.set_status(status)
|
item.set_status(status)
|
||||||
tracking_info['status'] = status # may be a custom value
|
tracking_info['status'] = status # may be a custom value
|
||||||
tracking_info['status_logicial'] = (
|
tracking_info['status_logical'] = (
|
||||||
item.status
|
item.status
|
||||||
) # always the logical value
|
) # always the logical value
|
||||||
tracking_info['old_status'] = (
|
tracking_info['old_status'] = (
|
||||||
@@ -1805,7 +1805,7 @@ class StockItem(
|
|||||||
user (User): The user performing this action
|
user (User): The user performing this action
|
||||||
deltas (dict, optional): A map of the changes made to the model. Defaults to None.
|
deltas (dict, optional): A map of the changes made to the model. Defaults to None.
|
||||||
notes (str, optional): URL associated with this tracking entry. Defaults to ''.
|
notes (str, optional): URL associated with this tracking entry. Defaults to ''.
|
||||||
commit (boolm optional): If True, save the entry to the database. Defaults to True.
|
commit (bool, optional): If True, save the entry to the database. Defaults to True.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
StockItemTracking: The created tracking entry
|
StockItemTracking: The created tracking entry
|
||||||
@@ -2301,7 +2301,7 @@ class StockItem(
|
|||||||
old_status_logical = new_stock.status
|
old_status_logical = new_stock.status
|
||||||
new_stock.set_status(status)
|
new_stock.set_status(status)
|
||||||
deltas['status'] = status # may be a custom value
|
deltas['status'] = status # may be a custom value
|
||||||
deltas['status_logicial'] = (
|
deltas['status_logical'] = (
|
||||||
new_stock.status
|
new_stock.status
|
||||||
) # always the logical value
|
) # always the logical value
|
||||||
deltas['old_status'] = (
|
deltas['old_status'] = (
|
||||||
@@ -2432,7 +2432,7 @@ class StockItem(
|
|||||||
old_status_logical = self.status
|
old_status_logical = self.status
|
||||||
self.set_status(status)
|
self.set_status(status)
|
||||||
tracking_info['status'] = status # may be a custom value
|
tracking_info['status'] = status # may be a custom value
|
||||||
tracking_info['status_logicial'] = self.status # always the logical value
|
tracking_info['status_logical'] = self.status # always the logical value
|
||||||
tracking_info['old_status'] = (
|
tracking_info['old_status'] = (
|
||||||
old_custom_status if old_custom_status else old_status_logical
|
old_custom_status if old_custom_status else old_status_logical
|
||||||
)
|
)
|
||||||
@@ -2524,7 +2524,7 @@ class StockItem(
|
|||||||
old_status_logical = self.status
|
old_status_logical = self.status
|
||||||
self.set_status(status)
|
self.set_status(status)
|
||||||
tracking_info['status'] = status # may be a custom value
|
tracking_info['status'] = status # may be a custom value
|
||||||
tracking_info['status_logicial'] = self.status # always the logical value
|
tracking_info['status_logical'] = self.status # always the logical value
|
||||||
tracking_info['old_status'] = (
|
tracking_info['old_status'] = (
|
||||||
old_custom_status if old_custom_status else old_status_logical
|
old_custom_status if old_custom_status else old_status_logical
|
||||||
)
|
)
|
||||||
@@ -2594,7 +2594,7 @@ class StockItem(
|
|||||||
old_status_logical = self.status
|
old_status_logical = self.status
|
||||||
self.set_status(status)
|
self.set_status(status)
|
||||||
tracking_info['status'] = status # may be a custom value
|
tracking_info['status'] = status # may be a custom value
|
||||||
tracking_info['status_logicial'] = self.status # always the logical value
|
tracking_info['status_logical'] = self.status # always the logical value
|
||||||
tracking_info['old_status'] = (
|
tracking_info['old_status'] = (
|
||||||
old_custom_status if old_custom_status else old_status_logical
|
old_custom_status if old_custom_status else old_status_logical
|
||||||
)
|
)
|
||||||
@@ -2655,7 +2655,7 @@ class StockItem(
|
|||||||
old_status_logical = self.status
|
old_status_logical = self.status
|
||||||
self.set_status(status)
|
self.set_status(status)
|
||||||
deltas['status'] = status # may be a custom value
|
deltas['status'] = status # may be a custom value
|
||||||
deltas['status_logicial'] = self.status # always the logical value
|
deltas['status_logical'] = self.status # always the logical value
|
||||||
deltas['old_status'] = (
|
deltas['old_status'] = (
|
||||||
old_custom_status if old_custom_status else old_status_logical
|
old_custom_status if old_custom_status else old_status_logical
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user