Odoo Help

Welcome!

This community 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.

0

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

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

--Hiral Patel (hip)--
Tiny ERP Pvt Ltd
http://www.odoo.com
913
| 2 1 5
India
--Hiral Patel (hip)--


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

Hello,

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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