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.

1

Editing process in openerp

By
wasis85
on 2/20/13, 5:44 AM 4,632 views

I want to ask about editing process in openerp, especially in v7.

I edit xml file (form, tree, search) is from frontend xml inside openerp; i edit phyton file is from backend of openerp folder in .py file; i edit xml file (action) is from database (model) openerp not from frontend xml inside openerp; etc.

The question: are them the only way in editing it? is it any other simple way? if i must edit from many place, i think this is not efficient..

Hello. Please, what's the point of these tags openerp, openerp-7, openerp7 ? We're on an OpenERP Q&A, it seems obvious that que question will be about OpenERP. Regarding the version, you can use the tag v7. Also I don't really get your question...

Antonin Bourguignon (abo)
on 2/20/13, 5:47 AM

Anto is right, please use only v7 tag we are not in stackoverflow to use such tags.

senthil
on 3/13/13, 3:31 AM
1

Ray Carnes

--Ray Carnes--
15717
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 3/20/13, 10:32 PM

General and High Level rules:

XML files are loaded into the database when a module is installed or updated. XML files insert database records. These records are editable either via the UI or via the XML files themselves.

If you edit the records via the UI, your changes will affect OpenERP.

If you edit the XML file, your changes will not affect OpenERP until you update the module.

If you edit the records via the UI, your changes will be removed next time you update the module - because the XML files will be loaded back into the database, replacing the records you have edited.

If you want to modify anything in OpenERP, you need to create your own database records - views, actions, workflows, etc.

If you create these database records via the UI - your customizations will only be available in the database you create them in.

If you create these database records via your own XML files - your cusomziations can be applied to any database.

You should never edit anything in the database, as this bypasses the business / application layer and can quickly break the integrity of the database (meaning it will no longer be accurate and/or will prevent OpenERP from working properly).

it means i must modify "res_partner_view.xml" if i want to add or erase field in that module, doesn't it?

wasis85
on 3/20/13, 11:13 PM

You should create another view that inherits that view and makes the field invisible (to 'erase' it) or adds a new field. It is better to make a field you don't want invisible rather than remove it from the view, because another view or field might expect it to be there.

Bista Solutions US, Ray Carnes
on 3/21/13, 12:30 AM

what about if i directly edit from ex. "res_partner_view.xml"? is it forbidden? or bad way?

wasis85
on 3/21/13, 12:51 AM

This will work, but will not survive a module or system update.

Bista Solutions US, Ray Carnes
on 3/21/13, 11:09 PM

when i make new inheritance view in backend, how can i put my new inheritance view together with a parent view in UI? or updated the new inheritance view?

wasis85
on 3/22/13, 12:18 AM
0
juan delgado
On 9/27/14, 1:57 PM

hi guys i edit xml and python file then update module but not take effect yet

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: 2/20/13, 5:44 AM
Seen: 4632 times
Last updated: 3/16/16, 11:20 AM