mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Adds the ability for the Purchaser to specify where the item is intentended to go when received. If the Purchaser does not set a preferred location, then the default location for the part is displayed. If the item is received them where it was actually placed is shown. NOTE: if an item is split when received only one of the resulting StockItem location is used. Fixes #1467 Addresses some of the requests in #551
30 lines
829 B
Python
30 lines
829 B
Python
# Generated by Django 3.2 on 2021-05-13 22:38
|
|
|
|
from django.db import migrations
|
|
import django.db.models.deletion
|
|
import mptt.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("stock", "0063_auto_20210511_2343"),
|
|
("order", "0045_auto_20210504_1946"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="purchaseorderlineitem",
|
|
name="destination",
|
|
field=mptt.fields.TreeForeignKey(
|
|
blank=True,
|
|
help_text="Where does the Purchaser want this item to be stored?",
|
|
null=True,
|
|
on_delete=django.db.models.deletion.DO_NOTHING,
|
|
related_name="po_lines",
|
|
to="stock.stocklocation",
|
|
verbose_name="Destination",
|
|
),
|
|
),
|
|
]
|