İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3736 Görünümler

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?

Avatar
Vazgeç

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)

Üretici En İyi Yanıt

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

Avatar
Vazgeç