This question has been flagged
1 Reply
728 Views

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


Avatar
Discard
Best Answer

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

Avatar
Discard