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
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
|Asked: 7/26/13, 6:58 AM|
|Seen: 3238 times|
|Last updated: 3/16/15, 8:10 AM|