-
is there any glossary or list of contexts that we can cast on labels? I'm trying to get the supplier of the part attached in a stockitem label but i'm keep on trying and not finding. is there any doc or does anyone knows the anser of my question?+ tried {{ part.supplier }} , {{ supplier }}, {{ item.supplier }} but none of them are working for now. any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@anonkwe a good start would be the docs - https://docs.inventree.org/en/latest/report/labels/#stock-item-labels |
Beta Was this translation helpful? Give feedback.
-
thanks everyone Just to let you know, {{ item.supplier_part.supplier }} works as well but it comes out with a hyphen at the end of the supplier name. |
Beta Was this translation helpful? Give feedback.
thanks everyone
{{ item.supplier_part.supplier.name }} worked like a charm!
Just to let you know, {{ item.supplier_part.supplier }} works as well but it comes out with a hyphen at the end of the supplier name.