콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
7 답글
4475 화면

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)

작성자

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

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.

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

have u changed the view (.xml)?

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

작성자

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

베스트 답변

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.

아바타
취소
베스트 답변

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.

관련 게시물 답글 화면 활동
0
3월 15
3841
1
3월 15
3744
1
3월 15
9283
12
8월 18
16814
1
3월 15
5928