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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
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
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
apr 25
|
933 | ||
|
0
set 21
|
2020 | ||
|
0
nov 24
|
1334 | ||
|
4
ago 24
|
1567 | ||
|
2
feb 23
|
1934 |