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

Hi everyone i am using odoo 14 CE i have made a custom module in which there is a selection field items with options 
item = fields.Selection([('a', 'LAB Equipment’s'),
('b', 'Software Tools'),
('c', 'External Labs']),)

i am trying to inherit into that using another custom module 

item = fields.Selection(selection_add=[('mech', 'Mechanical'),
('rework', 'Rework')])

it works but everytime i restart my odoo server crashes and give me error 
Internal server error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application

How do i fix this using python code or xml how can i achieve this

アバター
破棄
最善の回答

Dear Jo,

>> your error is not coming at selection field. This error is occurring because the cookie has been saved.

>> To fix this problem, first uninstall your module.

>> After the module is uninstalled, navigate to your browser and clear your browser cache and cookies and reload the page.

>> After this, install your module again.



I hope this information will be helpful and your issue will be resolved.




Feel free for further assistance on contact@geminatecs.com

Thank you
Geminate Consultancy Services

アバター
破棄
著作者

Hi i did the steps you have mentioned but still i am getting this error
ValueError: Wrong value for purchase.order.item: 'mech
its the key for the selection field like it gets added but everytime i restart my odoo server it shows this error

関連投稿 返信 ビュー 活動
1
1月 22
2595
0
6月 21
3063
3
2月 24
5032
2
10月 23
3184
1
4月 23
3803