コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5874 ビュー

I'm using windows7 and addons are in C:\Program Files (x86)\OpenERP 7.0-20130921-231041\Server\server\openerp

I changed a label on Quotation at "Edit FormView" and put a comment like below

i.imgur.com/WUMEJcH.png

But when I open sale_view.xml under C:\Program Files (x86)\OpenERP 7.0-20130921-231041\Server\server\openerp\addons\sale, I couldn't find the change

i.imgur.com/lVYXRd8.png

I have even do a window search the whole addons folder on the comment I put, i.e. and get no luck. Can someone educate me:

  1. how to modify the xml directly in windows instead of using only the web based tool to modify the view?

  2. where are the changes saved after editing views using web based tool as below?

i.imgur.com/zgudYmX.png

アバター
破棄
最善の回答

When you edit views via OpenERP, your changes are saved in the database and not the file.

When you edit an XML views file, you need to update the module associated with that file ( from the modules list ) , so that the new changes are saved to the database.

What's advised is that you create your own module, inherit the view you want to change and then apply changes to it as you wish.

アバター
破棄
著作者

Thank you. I am running no Windows 7, and have tried to create my_addons in C:\Program Files (x86)\OpenERP 7.0-20130921-231041\Server\server\openerp\, same folder with the default addons folder, and created a mymodule folder with 4 required files inside it (I have my __init__.py __openerp__.py mymodule.py and mymodule_view.xml); also added my_addons path in openerp-server.conf. Restarted the service, checked technical features, clicked Update Module List, but mymodule isn't there for me to install. May I know why?

your module directory must be inside addons/, otherwise there is probably a python code error, check your log file for clues or paste the code in another question for assistance.

関連投稿 返信 ビュー 活動
0
11月 24
521
2
6月 20
10717
0
12月 19
5873
3
5月 25
161
8
4月 23
70204