콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
9586 화면

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

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

베스트 답변

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?

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.

작성자

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

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

작성자

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?

베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
What's the context? 해결 완료
9
3월 24
116359
1
6월 20
11142
1
3월 15
2967
2
3월 15
8959
2
3월 15
4171