Skip to Content
Menu
This question has been flagged
1 Atsakyti
5879 Rodiniai

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

Portretas
Atmesti
Best Answer

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.

Portretas
Atmesti
Autorius

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.

Related Posts Replies Rodiniai Veikla
0
lapkr. 24
528
2
birž. 20
10719
0
gruod. 19
5879
3
geg. 25
239
8
bal. 23
70215