Odoo Help

0

pyc files not generated

By
Romuald Franck
on 7/7/14, 10:08 AM 2,051 views

Good morning to everyone, i am facing this problem:

Sometimes, after making modifications in my .py files, i restarted the server and saw nothing had changed. In fact the .pyc files were not regenerated so i want to know if someone can give me the good procedure to make that happens.

 

Now what I do is:

step1-add in eclipse params: --update=module_name

step2-click on settings ==> installed modules (the idea is to load the module again)

step3-be sure not to be in debug mode (you can remove debug from the address bar).

Could someone know how to do step 2 without using the web client (browser) i.e a way or a param to add when restarting the server so that the modules will be load again, because i remark that it is in this step that pyc files are regenerated.

Thank you in advance.

 

 

0

Leonardo Donelli

--Leonardo Donelli--
1060
| 5 4 8
Cave, Italy
--Leonardo Donelli--

Physics student and part-time developer.

Leonardo Donelli
On 7/7/14, 10:19 AM

Step 1 is actually the same as step 2, they are just different methods to do that: 1) is from command line while 2) is "live" from web client. The problem of doing it "live" is exactly the one you are having: the python files are not re-read and bytecompiled so the changes to them won't work, you'll have to restart openerp-server. (there may be ways to force them to be reloaded without restarting the server, does anyone know?). But all other modifications (xml views, translations, etc) are loaded exatcly the same way when doing -u module from command line or module upgrade from web client.

TL;DR: restart openerp-server.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 7/7/14, 10:08 AM
Seen: 2051 times
Last updated: 3/16/15, 8:10 AM