This question has been flagged

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
Discard
Best Answer

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
Discard
Author

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