Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I am trying to install School Module of tecnoba in OpenERP 6 but I am getting this error message:
typeerror int() argument must be a string or a number not 'built in function or method'
I checked the XML (school_base_demo.xml) but could not understand as to what to change.
The XML code is:
<record id="school_course_line_0" model="school.course.line"> <field eval="ref('school_course_0')" name="course_id"/> <field eval="ref('school_offer_0')" name="offer_id"/> <field name="needly">required</field> <field name="weekly_hours" eval="4" /> </record>
Any ideas as to how to solve this?
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).
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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/9/13, 4:27 AM|
|Seen: 1096 times|
|Last updated: 3/16/15, 8:10 AM|