Odoo Help


Uncaught Error: Expected ")", got "(name)"

Aijay Ogbugha
on 7/26/13, 6:58 AM 4,797 views

Please can someone help me...why am I getting this error when I click on this field? And how can I fix it?

here is the field on my xml file: <field name="my_product_id" domain="[('self.pool.get('product.product').browse(cr, uid, product_id).qty_available','>', 0)]" on_change="onchange_my_product_id(my_product_id)"/> And this is the field in my py file: 'my_product_id': fields.many2one('product.product', 'Product', required=True, select=True)

What am I not getting please? Thank you


Hiral Patel (hip)

--Hiral Patel (hip)--
| 2 1 5
--Hiral Patel (hip)--

Hiral Patel (hip)
On 7/26/13, 8:39 AM


You are using python code in xml file which is not allowed.

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 7/26/13, 6:58 AM
Seen: 4797 times
Last updated: 3/16/15, 8:10 AM