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

Hello, its possible redefine the import core method to extend file type support, may users use Excel to create tables and manage data. What extendable is load method?

아바타
취소
베스트 답변

Hello,

This is possible as now majority of know how is located in server, there is some controller function to get header structure and fields/content validation like parse_preview.

ir.import is a Transient Model defined in base import so it will be easier to modify it.

if you can prepare data format compatible with def load(self, cr, uid, fields, data, context=None) (a list of field and a list of list) of orm that is "mapped" by def do(self, cr, uid, id, fields, options, dryrun=False, context=None) of base_import it should work.

But it is quite a work. Maybe you should look to port community module that do advance import and already support XLS.

아바타
취소
관련 게시물 답글 화면 활동
1
5월 19
6701
1
11월 15
11213
1
2월 25
1102
0
12월 22
2157
1
3월 15
8720