mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixed model name and added to part navbar
This commit is contained in:
parent
8f610d826f
commit
08ffbee8ed
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user