mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +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)
|
on_delete=models.CASCADE)
|
||||||
|
|
||||||
|
|
||||||
class MaufacturerPart(models.Model):
|
class ManufacturerPart(models.Model):
|
||||||
""" Represents a unique part as provided by a Manufacturer
|
""" Represents a unique part as provided by a Manufacturer
|
||||||
Each MaufacturerPart is identified by a MPN (Manufacturer Part Number)
|
Each ManufacturerPart is identified by a MPN (Manufacturer Part Number)
|
||||||
Each MaufacturerPart is also linked to a Part object.
|
Each ManufacturerPart is also linked to a Part object.
|
||||||
A Part may be available from multiple manufacturers
|
A Part may be available from multiple manufacturers
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
part: Link to the master Part
|
part: Link to the master Part
|
||||||
manufacturer: Company that manufactures the MaufacturerPart
|
manufacturer: Company that manufactures the ManufacturerPart
|
||||||
MPN: Manufacture part number
|
MPN: Manufacture part number
|
||||||
link: Link to external website for this manufacturer part
|
link: Link to external website for this manufacturer part
|
||||||
description: Descriptive notes field
|
description: Descriptive notes field
|
||||||
|
@ -69,9 +69,15 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.purchaseable and roles.purchase_order.view %}
|
{% 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 %}'>
|
<a href='{% url "part-suppliers" part.id %}'>
|
||||||
<span class='menu-tab-icon fas fa-building'></span>
|
<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" %}
|
{% trans "Suppliers" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user