Q:

display confirmed products for purchase in purchase order openerp

I have added new statuses(PENDING,CONFIRMED) for products. I need to display only CONFIRMED products for purchase in the purchase order. I have tried, however, not getting clear idea on this.

A:

You can inherit the view and use domain [('status','=','confirmed')]
<field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,0,False,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,context)" domain="[('state','=','confirmed')]" />

