mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 19:15:41 +00:00
Add barcode actions for SalesOrderShipment (#9746)
* Add barcode actions for SalesOrderShipment * Handle error on worker boot
This commit is contained in:
@ -641,7 +641,12 @@ def check_for_migrations(force: bool = False, reload_registry: bool = True) -> b
|
|||||||
def set_pending_migrations(n: int):
|
def set_pending_migrations(n: int):
|
||||||
"""Helper function to inform the user about pending migrations."""
|
"""Helper function to inform the user about pending migrations."""
|
||||||
logger.info('There are %s pending migrations', n)
|
logger.info('There are %s pending migrations', n)
|
||||||
set_global_setting('_PENDING_MIGRATIONS', n, None)
|
|
||||||
|
try:
|
||||||
|
set_global_setting('_PENDING_MIGRATIONS', n, None)
|
||||||
|
except Exception:
|
||||||
|
# If the setting cannot be set, we just log a warning
|
||||||
|
logger.error('Could not clear _PENDING_MIGRATIONS flag')
|
||||||
|
|
||||||
logger.info('Checking for pending database migrations')
|
logger.info('Checking for pending database migrations')
|
||||||
|
|
||||||
|
@ -317,6 +317,7 @@ export default function SalesOrderShipmentDetail() {
|
|||||||
key='barcode'
|
key='barcode'
|
||||||
model={ModelType.salesordershipment}
|
model={ModelType.salesordershipment}
|
||||||
pk={shipment.pk}
|
pk={shipment.pk}
|
||||||
|
hash={shipment?.barcode_hash}
|
||||||
/>,
|
/>,
|
||||||
<PrintingActions
|
<PrintingActions
|
||||||
key='print'
|
key='print'
|
||||||
|
Reference in New Issue
Block a user