Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2649 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
1
jan. 22
2544
0
jun. 21
3008
3
feb. 24
4945
2
okt. 23
3168
1
apr. 23
3764