Problèmes with Python to alter an OpenERP module

Asked by crea_stg

Good morning,

For my internship I have to alter and create OpenERP modules,
I'm currently testing the modification of the module "Product - Manufacturer".

But I have a problem, when I change the Python code to edit an object,
I save the file but no modifications are considered.
Whereas when I change the XML code I see my modifications.
I'm on Windows 7 and I work with Python 3.2.

Can somebody help me?

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
crea_stg
Solved:
Last query:
Last reply:
Revision history for this message
Malhar Vora(SerpentCS) (mvora-serpentcs) said :
#1

Hello crea_stg,

Python code is compiled code. XML code is reconsidered every time to you upgrade the module. So the solution of your problem is to restart the server.

I hope this will be helpful to you.

Thank you,

Malhar Vora
Serpent Consulting Services.

Revision history for this message
crea_stg (crea-stg) said :
#2

Hello Malhar Vora,

Thank for your answer and your explanations.
But how I can restart the server? What is the procedure to do that?

Revision history for this message
crea_stg (crea-stg) said :
#3

Sorry,

I posted my message too quickly.
I found the way to restart the server (it's in the services).

Thank you for your help =)