Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3755 Vizualizări

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?

Imagine profil
Abandonează

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)

Autor Cel mai bun răspuns

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

Imagine profil
Abandonează