Add "supplier_reference" field to PurchaseOrder

- This is the code that the Supplier uses for the particuarl sales order
This commit is contained in:
Oliver Walters 2020-04-15 13:32:14 +10:00
parent 44addc9d7f
commit c12a482e4d
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 2.2.10 on 2020-04-15 03:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0018_auto_20200406_0151'),
]
operations = [
migrations.AddField(
model_name='purchaseorder',
name='supplier_reference',
field=models.CharField(blank=True, help_text='Supplier order reference', max_length=64),
),
]

View File

@ -131,6 +131,8 @@ class PurchaseOrder(Order):
help_text=_('Company')
)
supplier_reference = models.CharField(max_length=64, blank=True, help_text=_("Supplier order reference"))
received_by = models.ForeignKey(
User,
on_delete=models.SET_NULL,