Hii,
In a custom purchase workflow when submit, it should show a warning popup message that a product is expired (our custom field), and if user click on popup ok, workflow should continue as normal.
By raise UserError stops the program execution until condition fixed.
How to achieve in odoo 12 EE?
As @ Amr Abd-Alkrim Hassan replied.
Achieved the requirement with the help of wizard.