Odoo Help

Welcome!

This community 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.

0

As a Odoo developer, how can I continuously see the work taken into effect during development?

By
YangBo
on 11/22/16, 9:15 AM 100 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? 

0

Ray Carnes

--Ray Carnes--
15677
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 11/22/16, 1:05 PM

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

0
Chandni
On 11/22/16, 10:09 AM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/22/16, 9:15 AM
Seen: 100 times
Last updated: 11/22/16, 1:05 PM