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

i need read an create project, tasks and miliestones, and load time sheet i try this oerp.execute('project.project', 'search', [('name', '=', "XXXXX")])

my error is this

ERROR openrp2 openerp.netsvc: Object Error Object project.project doesn't exist

how get the name model?

아바타
취소
작성자 베스트 답변

I try migrete from redmine to openerp the projects my code it's

import oerplib

XMLRPC server configuration (NETRPC is also supported)

SERVER = 'localhost' PROTOCOL = 'xmlrpc' PORT = 8069

Name of the OpenERP database to use

DATABASE = 'openrp2'

USER = 'admin' PASSWORD = 'admin'

oerp = oerplib.OERP(server=SERVER,database=DATABASE,protocol=PROTOCOL, port=PORT,) oerp.login(USER, PASSWORD) oerp.execute('project.project', 'search', [('name', '=',"xxx")])

ERROR openrp2 openerp.netsvc: Object Error Object project.project doesn't exist

아바타
취소
베스트 답변

The Model Name you may known at Settings/Customization/Database Structure/Models and type on "Model description" the word "project".

Or

In the "About" click at "Activate the developper mode", then, in the form view for Project or Task put Pointer over field or FieldLabel and you see the Field Name and Object Name (Model Name).

Regards!

아바타
취소
작성자

import oerplib XMLRPC server configuration (NETRPC is also supported)

SERVER = 'localhost' PROTOCOL = 'xmlrpc' PORT = 8069 Name of the OpenERP database to use

DATABASE = 'openrp2'

USER = 'admin' PASSWORD = 'admin'

oerp = oerplib.OERP(server=SERVER,database=DATABASE,protocol=PROTOCOL, port=PORT,) oerp.login(USER, PASSWORD) oerp.execute('project.project', 'search', [('name', '=',"xxx")])

ERROR openrp2 openerp.netsvc: Object Error Object project.project doesn't exist this is my error

베스트 답변

I do not exactly know the context of your script. But here I have posted an example python script which uses XMLRPC.

There you can see how to use the XMLRPC functions.

아바타
취소