2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 13:46:54 +00:00

Update python.md

This commit is contained in:
Michael 2021-03-11 07:54:02 +01:00 committed by GitHub
parent 23501b9e20
commit 49d567270b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ Box13 = StockLocation.create(api, {'name':'Box 13','description':'red box','pare
## Now fill them with items ## Now fill them with items
Id1 = StockItem.create(api, { 'part': sofa.pk, 'quantity': 10, 'notes': 'new ones', 'location': Box12.pk, status:10 }) Id1 = StockItem.create(api, { 'part': sofa.pk, 'quantity': 10, 'notes': 'new ones', 'location': Box12.pk, status:10 })
Id2 = StockItem.create(api, { 'part': sofa.pk, 'quantity': 3, 'notes': 'new ones', 'location': Box13.pk, status:55 }) Id2 = StockItem.create(api, { 'part': sofa.pk, 'quantity': 3, 'notes': 'old ones', 'location': Box13.pk, status:55 })
``` ```
Please recognize the different status flags. 10 means OK, 55 means damaged. We have the following choices: Please recognize the different status flags. 10 means OK, 55 means damaged. We have the following choices: