Please verify that this feature request has NOT been suggested before.
[X] I checked and didn't find a similar feature request
Problem statement
With the default part name template the part names looks the following in the case if the IPN and the part name equals:
which is kind of weird.
Suggested solution
Changing the value of the PART_NAME_FORMAT from the default:
{{ part.IPN if part.IPN }}{{ ' | ' if part.IPN }}{{ part.name }}{{ ' | ' if part.revision }}{{ part.revision if part.revision }}
to
{{ part.IPN if part.IPN and part.name != part.IPN}}{{ ' | ' if part.IPN and part.name != part.IPN}}{{ part.name }}{{ ' | ' if part.revision }}{{ part.revision if part.revision }}
Please verify that this feature request has NOT been suggested before.
Problem statement
With the default part name template the part names looks the following in the case if the IPN and the part name equals: which is kind of weird.
Suggested solution
Changing the value of the PART_NAME_FORMAT from the default:
to
I think it would be useful to change the default value, and the fallback would also be useful to change: https://github.com/inventree/InvenTree/blob/master/src/backend/InvenTree/part/helpers.py#L76
Describe alternatives you've considered
Using different IPN and part name ;)
Examples of other systems
-
Do you want to develop this?