Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How can i show confirmation wizard in openerp?

By
samba
on 11/24/14, 5:09 AM 1,002 views

My actual requirement is : To move products from one location to another location, i am using the warehouse -> stock moves menu for this. I can move the stock to source to destination eventhough i dont have sufficient stock in source. My client asked me to show one confirmation to check.

I have a case like in     if (quantity on hand of source locatio < quantity required for move){ i want to show one confirmation box here like do you want to procedd or cancel with two buttons "confirm" and "cancel". if(confirm): make a move else: stay in draft state}. Can any one give small code for this?

Me too want this spec.. If u found please update the answer

Anand
on 11/24/14, 5:46 AM
2

Dhinesh - Technical Consultant, Sodexis Inc

--Dhinesh - Technical Consultant, Sodexis Inc--
3577
| 5 4 9
Pondicherry, India
--Dhinesh - Technical Consultant, Sodexis Inc--

Passionate coder in Python/OpenERP. Knows Django/Flask MVC frameworks. Did code in Java, PHP.

Contact me at: dvdhinesh.mail@gmail.com

Dhinesh - Technical Consultant, Sodexis Inc
On 11/24/14, 5:26 AM

You can refer <button name="cancel_voucher" string="Cancel Voucher" type="object" confirm="Are you sure you want to unreconcile this record?"/> in account voucher module for confirmation.

But for catching the result its not possible. You can define a method for confirm. If use press confirm means your method will be triggered. Else cancel means nothing happens.

0

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 11/24/14, 5:17 AM

Try in xml file where you define a view an add a button with something like :

<button name="button_name" ... confirm="Some warnning text... "/>

When you press that button you will have a popup with confirmation message, and Continue / Cancel buttons... 
 

 

Thank you Bole, But this confirmation shows for every time. But my case is different.. i want to show confirmation only for particular case only..

samba
on 11/24/14, 5:40 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 11/24/14, 5:09 AM
Seen: 1002 times
Last updated: 3/16/15, 8:10 AM