Replies: 2 comments 11 replies
-
Beta Was this translation helpful? Give feedback.
11 replies
-
BTW the last thing you need to change to get another field in part details for the icon is to add the keyword and choose a tabler icon: https://tabler.io/icons something like in '/home/inventree/src/src/frontend/src/functions/icons.tsx': const icons = {
name: IconPoint,
description: IconInfoCircle,
my_datasheet: IconBuildingFactory2,
datasheet: IconBuildingFactory2,
variant_of: IconHierarchy,
revision_of: IconStatusChange,
...
}
just have to bypass the translate to update view crap for smoother development and feed back and we're good to go though it seem like it could've been easier and faster to bring it from zero to the ground up, with that attitude thanks for nothing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the newest version of inventree bare metal install and I try to add a new field to part called

my_datasheet
now so far "pooping it" it along side "description" parameter among files like/home/inventree/src/src/backend/InvenTree/part/models.py
and/home/inventree/src/src/frontend/src/tables/part/PartTable.tsx
and
/home/inventree/src/src/frontend/src/pages/part/PartDetail.tsx
yielded this TADA:of cource i ran
python /home/inventree/src/src/backend/InvenTree/manage.py makemigragions
andpython /home/inventree/src/src/backend/InvenTree/manage.py migrate
and verifiying with pgadmin4 I saw it created the variablemy_datasheet
inSELECT * FROM public.part_part
what should be done to achieve this? also interested in adding this to the edit part and create new part dialogs, any directions?
Beta Was this translation helpful? Give feedback.
All reactions