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

Hello everybody!!

Please, who knows what is the origin of this error because i didnt find anything in the python code.

Error: NameError: name 'field' is not defined

Thanks a lot in advance.

Best Regards.

Imagine profil
Abandonează
Cel mai bun răspuns

Drees,
The cause of this error is that u must be having a typo somewhere with "fields" while defining the field under a class.

You can trace this by looking at your terminal, or if you dont have it, simply check your defined fields and see if you have any typo like that...

Hope it helps !

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Can you post all the message error and you python code ?

I have the same error like you when I write field without s:

Bad syntax
tax_line_ids = field.One2many('account.tax', 'tax_id', string='Tax Lines')
Correct syntax
tax_line_ids = fields.One2many('account.tax', 'tax_id', string='Tax Lines')

I got message error :

NameError: name 'field' is not defined

So check your code and find the error syntax.


Best regards,


 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 19
3981
0
ian. 19
5020
4
feb. 24
12232
0
ian. 18
3876
0
sept. 17
4297