I found that the below pops me up a confirmation dialogue on button press action in openerp
<button name="action_button_confirm" states="draft" string="Confirm Sale"
type="object" groups="base.group_user" confirm="Do you confirm this sale?"/>
I would like the confirm text to be displayed only if one of the products in the orderlines is service and the text should be
Do you like to confirm sale with service "AC Service"?
Where Ac Services is the service product name (i.e dynamic text based on the orderlines). Kindly suggest me a way to do this. Thanks