Skip to Content
Menu
This question has been flagged
2 Replies
5196 Views

From the documentation, I can see Odoo is quite awesome and promising. The problem for me right now is that, I am writing a module, after I install it, I can not see any changes to the template file and controller file, etc. take into effect when I modify the source files. I guess Odoo just load the source file from disk at the first time and then load it from the cache. But how can I refresh the cache and see the changes? 

Avatar
Discard
Best Answer

Hi Yango,


If you have made changes in your PY file, you need to restart the server to see the effect of your changes,

If changes are there in XML file, you need to restart server and UPGRADE your module. Other then that if changes are there in JS and CSS file, you dont need to restart the server just need to refresh the page by ctrl+f5.


Thanks,

Chandni

Avatar
Discard
Best Answer

If you run Odoo with the command-line --dev option, you have the following additional arguments:

  • all: all the features below are activated

  • xml: read template qweb from xml file directly instead of database. Once a template has been modified in database, it will be not be read from the xml file until the next update/init.

  • reload: restart server when python file are updated (may not be detected depending on the text editor used)

  • qweb: break in the evaluation of qweb template when a node contains t-debug='debugger'

  • (i)p(u)db: start the chosen python debugger in the code when an unexpected error is raised before logging and returning the error.

See https://www.odoo.com/documentation/10.0/reference/cmdline.html

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
68
0
Dec 24
41
1
Dec 24
47
0
Dec 24
56
0
Nov 24
64