i have too much fields to be under specific categories for easy selection in others views, im trying to do the same as department in employee module , product category in inventory module, also i found account type - chart of account in accounting module
i shared some photos to find help how to do the same
https://photos.app.goo.gl/zYHhg7Kw7Muo4qd39
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Hi Mohammad,
It seems like you need a field selection similar to the 'Account Type' field. In Odoo, this is typically a selection field, and there's a separate widget called 'account_type_selection' for that field type. However, when considering other fields like 'Department' or 'Category,' these are usually Many2one fields that relate to the corresponding model. Additionally, there's often a field named 'complete_name' with a compute function to compute the record name and parent name.
To replicate this behavior, you'll need to create two extra fields ('parent_id' and 'complete_name') through Studio. Then, you'll need to write a compute function to calculate the values for the 'complete_name' field.
Hope it helps
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
1
apr. 25
|
979 | ||
|
0
sep. 21
|
2032 | ||
|
0
nov. 24
|
1350 | ||
|
4
aug. 24
|
1597 | ||
|
2
feb. 23
|
1960 |