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

Hey Guys,

Im trying to make a custom module which produces me some additional Fields.

When i'm creating new fields like this:

_columns = {
        'title' : fields.integer('Titel', size=30),
        'textual_field' : fields.text('Notes'),
    }

and in XML like this:

<field name="title" />
<field name="textual_field" />

everything is working, but when I want to use a different names like 'blabla' instead of 'textual_field' I'm getting error: Invalid XML for View Architecture. So what am I doing wrong, and why is 'textual_field' working as field name and 'blabla' or something else not?

아바타
취소

Have you made the change in the two files (.py and .xml)?

Also, have you restart the server to recompile the .py files? I think it is possible, that, as you change name in .xml file, but not restart yet. The change in XML file will try to take place, while the column is not updated (as .pyc still the old one)

작성자 베스트 답변

Restart the Server, as simple as it sounds. Worked for me, didn't knew that, thanks!

아바타
취소