Hey guys, I want a field to show only products that have more than one quantity available for selection. please how do i implement this?? Please I need your help urgently. Thank you
Below is the field on my python file: 'my_product_id': fields.many2one('product.product', 'Product', required=True, select=True) And the same field in my xml file: <field name="my_product_id" domain="[('my_product_id','=','qty_available > 0')]" on_change="onchange_my_product_id(my_product_id)"/>
Please what am I doing wrongly?
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/25/13, 6:21 AM|
|Seen: 1047 times|
|Last updated: 3/16/15, 8:10 AM|