Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2307 Tampilan

please have a look on screenshot, i am using pycharm ce for development in odoo 14, when i just open the odoo/addons/auth_signup/controllers/main.py file it is showing errors, nothing changed just opened it to see. please advise.

in my conf file i have addons path as below:

addons_path = /home/odoo/odoo-dev/odoo/addons,/home/odoo/odoo-dev/odoo/custom_addons


Avatar
Buang
Jawaban Terbai

Hi,

This is not the error in odoo, it is related with the odoo configuration in pycharm. Here what you have to do is that, open the source code in pycharm, right click on the odoo folder, and click on Make Directory As , then click Source Root.

Right click odoo, Make Directory As -> Source Root



Then make sure to add add sources to your PYTHONPATH, Run -> Edit Configuration, tick the below




Thanks

Avatar
Buang
Penulis

@Niyas Raphy i have done as instructed, but still the same situation, i know that this will not create problem when i upgrade app and/or start odoo server from command line or UI, all are working fine. the problem is where i wants to inherit the auth_signup controller or it seems a problem?

ignore the warning and go ahead, it wont create problem

Post Terkait Replies Tampilan Aktivitas
1
Jun 22
1802
1
Jul 25
2354
2
Jul 25
7849
2
Jul 25
4243
2
Jul 25
4012