Odoo Help

0

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

By
Aijay Ogbugha
on 7/26/13, 6:58 AM 3,960 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

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

Hello,

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.

Register

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)

Stats

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