2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Fixed navbar, added missing template and urls

This commit is contained in:
eeintech
2021-03-23 17:45:03 -04:00
parent 08ffbee8ed
commit e28dde7f7b
5 changed files with 114 additions and 2 deletions

View File

@ -307,7 +307,7 @@ class ManufacturerPart(models.Model):
manufacturer = models.ForeignKey(
Company,
on_delete=models.SET_NULL,
related_name='manufactured_parts',
related_name='manufacturer_parts',
limit_choices_to={
'is_manufacturer': True
},
@ -386,6 +386,24 @@ class SupplierPart(models.Model):
help_text=_('Supplier stock keeping unit')
)
manufacturer = models.ForeignKey(
Company,
on_delete=models.SET_NULL,
related_name='manufactured_parts',
limit_choices_to={
'is_manufacturer': True
},
verbose_name=_('Manufacturer'),
help_text=_('Select manufacturer'),
null=True, blank=True
)
MPN = models.CharField(
max_length=100, blank=True, null=True,
verbose_name=_('MPN'),
help_text=_('Manufacturer part number')
)
link = InvenTreeURLField(
blank=True, null=True,
verbose_name=_('Link'),