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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
kwi 25
|
1121 | ||
|
0
wrz 21
|
2080 | ||
|
0
lis 24
|
1422 | ||
|
4
sie 24
|
1677 | ||
|
2
lut 23
|
2070 |