Odoo Ayuda

0

0
1 Answer
1
Avatar

patrick

--patrick--

1961
| 5 4 9
Baarn, Holanda
--patrick--
patrick
9/4/13 5:27

The message you receive is about python error.

The function int() expects to get a string or a number, but somehow it is given a 'built in function or method'.

In the XML code you use the function eval, which will run python code. You pass it a ref('school_course_0'), which is a function. This will cause the function eval to generate the error, because the field course_id is int4.

It looks like you want to store the school_course_0 in the field course_id, this is possible when school_course_0 is an ID of the course. Than you do not have to use eval, just assign it (maybe use school_course_o.id instead of school_course_0).

Realizar una pregunta
Etiquetas
Keep Informed
2 seguidor(es)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now