Odoo Help

Welcome!

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

0

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

By
Andrew
on 10/12/13, 1:06 AM 1,354 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

IBS

--IBS--
1302
| 4 5 8
Tétouan, Morocco
--IBS--

For more informations about IBS, please visit our website at www.ibs-na.com.

For a specific questions, collaboration or help, please send us an email to support@ibs-na.com

IBS
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.

IBS
on 10/12/13, 1:11 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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