コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2661 ビュー

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


アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 25
918
0
9月 21
2008
0
11月 24
1326
4
8月 24
1556
2
2月 23
1926