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

Changing .PY files in Openerp7

By
Faez Abdulkarem
on 2/4/16, 1:50 AM 443 views

Hello everyone,

I understand that the question may have been answered before and I have checked some posts but I got nothing.

I am new to Openerp/Odoo and my boss asked me to changing how some data appears in one of our custom modules and I believe that I have done everything correctly in the .PY file (changed the value of some variables).

However, when my boss tries to test that changes, it appears that nothing has been changed at all.

Do I need to change the .XML file? or I need to do something else?

Have you updated your module? (Settings > Update module list and then update your custom module)

Yenthe
on 2/4/16, 1:58 AM

I only have access to the server through terminal, so can you give me the code for that?

Faez Abdulkarem
on 2/4/16, 2:30 AM

Faez, as u have changed .py only, it will not show any change in the view of form, to do that u need to manipulate the .xml file and then got for '-u YOUR_MODULE' while restarting.

Pawan
on 2/5/16, 12:17 AM

restarting openerp/odoo doesn't do anything, the page is still the same as it was before the changes 

Faez Abdulkarem
on 2/4/16, 7:48 AM

have u changed the view (.xml)?

Pawan
on 2/5/16, 4:27 AM

In windows platform, you need to delete .pyc files in the module and restart odoo-server service

Atchuthan - Technical Consultant, Sodexis Inc
on 2/5/16, 7:05 AM

sudo /etc/init.d/openerp-server stop doesn't work for me, so i had to restart the whole server the new values appeared, but after few minutes all of openerp crashed with an error in the web module? probably due to not changing the XML file but im not sure of that

Faez Abdulkarem
on 2/7/16, 12:15 AM
0

Yenthe

--Yenthe--
6676
| 7 7 8
Turnhout, Belgium
--Yenthe--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

Yenthe
On 2/5/16, 12:15 AM

Stop your Odoo service, then restart it with the command -u YourModuleName This will reload all Python files for the module and will 'apply' all changes.

0
Steven Segers
On 2/4/16, 2:24 AM

You need to restart the odoo service for the py files to get recompiled.

Actually a restart doesn't fix anything. You'll need to do a -u.

Yenthe
on 2/4/16, 9:02 AM

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: 2/4/16, 1:50 AM
Seen: 443 times
Last updated: 2/5/16, 1:50 AM