Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Jan 22
2545
0
Jun 21
3011
3
Feb 24
4947
2
Okt 23
3168
1
Apr 23
3766