Skip to Content
Menu
This question has been flagged
2 Replies
10709 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.

 

 

Avatar
Discard
Best Answer

If after restart, it's still not loaded,
Double click on the __init__.py at the module directory and see if the file will be triggered

Avatar
Discard
Best Answer

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.

Avatar
Discard

There is a server developmant mode, when server restart and module upgrade is not needed.

To enable it start the server with option --dev=all

Related Posts Replies Views Activity
1
Jan 21
2514
0
Mar 15
3101
2
Nov 24
374
0
Nov 18
2015
1
Aug 17
4744