Fixed model name and added to part navbar

This commit is contained in:
eeintech 2021-03-23 17:33:29 -04:00
parent 8f610d826f
commit 08ffbee8ed
2 changed files with 11 additions and 5 deletions

View File

@ -278,15 +278,15 @@ class Contact(models.Model):
on_delete=models.CASCADE)
class MaufacturerPart(models.Model):
class ManufacturerPart(models.Model):
""" Represents a unique part as provided by a Manufacturer
Each MaufacturerPart is identified by a MPN (Manufacturer Part Number)
Each MaufacturerPart is also linked to a Part object.
Each ManufacturerPart is identified by a MPN (Manufacturer Part Number)
Each ManufacturerPart is also linked to a Part object.
A Part may be available from multiple manufacturers
Attributes:
part: Link to the master Part
manufacturer: Company that manufactures the MaufacturerPart
manufacturer: Company that manufactures the ManufacturerPart
MPN: Manufacture part number
link: Link to external website for this manufacturer part
description: Descriptive notes field

View File

@ -69,9 +69,15 @@
</li>
{% endif %}
{% if part.purchaseable and roles.purchase_order.view %}
<li class='list-group-item {% if tab == "suppliers" %}active{% endif %}' title='{% trans "Suppliers" %}'>
<li class='list-group-item {% if tab == "manufacturers" %}active{% endif %}' title='{% trans "Manufacturers" %}'>
<a href='{% url "part-suppliers" part.id %}'>
<span class='menu-tab-icon fas fa-building'></span>
{% trans "Manufacturers" %}
</a>
</li>
<li class='list-group-item {% if tab == "suppliers" %}active{% endif %}' title='{% trans "Suppliers" %}'>
<a href='{% url "part-suppliers" part.id %}'>
<span class='menu-tab-icon fas fa-warehouse'></span>
{% trans "Suppliers" %}
</a>
</li>