Odoo Help

0

"Edit FormView" doesn't change sale_view.xml?

By
Andrew
on 10/12/13, 1:06 AM 1,699 views

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

0
odoo.ma by IBS Group
On 10/12/13, 7:33 AM

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?

Andrew
on 10/12/13, 8:40 AM

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.

odoo.ma by IBS Group
on 10/12/13, 1:11 PM

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 10/12/13, 1:06 AM
Seen: 1699 times
Last updated: 3/16/15, 8:10 AM