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

Why buttons in openerp are very sensitive? Is it bug?

By
Abegail Sanchez
on 6/19/14, 11:43 PM 700 views

 

Once you clicked it will save your data even

without clicking the real or parent button which is the Save Button ?

It is very hard to control. Any solution for this?

Thanks.

1

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 6/20/14, 9:23 AM

Abegail,

As an architecture, when a button is clicked, it would need the other filelds of the record and hence the save action on button click is must.

What is your porpose, we can discuss here and you can get the help.

Thanks.

0
Abegail Sanchez
On 6/21/14, 5:24 AM

I have problem if the users click the button then the data being written on the form will be save but what if the users discard it, The data will remain. I think this is very crucial when you made some changes in your record but you dont like to save it because you already hit the button when doing some changes you can't restore it back even discard it.

This is my possible scenario that might happen on the module I am developing.

Can you give me an idea on how to solve this?

Thanks.

Abegail, You may handle it via overriding the create() and write(). Button click goes to these methods only. How would you assure the RIGHT(not the left,right, but true click) click is done by user? You have to differenciate an accidental click and right click. You might add up a field which is a checkbox...Use will fill everything and click on that checkbox to say he 'completed' the entry. On create(), you keep the check of that field and proceed; block otherwise. Thanks.

Serpent Consulting Services Pvt. Ltd.
on 6/21/14, 12:13 PM
What I did is to raise an exception , instead of check box I made a selection , the users need  select if this data need to be save.
Actually I am developing a hospital billing module , thank you for your time and efforts in answering my questions.   


On Sun, Jun 22, 2014 at 12:13 AM, Serpent Consulting Services Pvt. Ltd. <serpentcs-lp-gmail-com@openerp.my.openerp.com> wrote:

Abegail, You may handle it via overriding the create() and write(). Button click goes to these methods only. How would you assure the RIGHT(not the left,right, but true click) click is done by user? You have to differenciate an accidental click and right click. You might add up a field which is a checkbox...Use will fill everything and click on that checkbox to say he 'completed' the entry. On create(), you keep the check of that field and proceed; block otherwise. Thanks.

--
Serpent Consulting Services Pvt. Ltd. Sent by OpenERP S.A. using OpenERP. Access your messages and documents in Odoo



--
Abegail G. Sanchez
IT Assistant-Software Developer/Computer Programmer
Information Systems Office
Philippine General Hospital
Abegail Sanchez
on 6/22/14, 11:33 PM

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

1 follower(s)

Stats

Asked: 6/19/14, 11:43 PM
Seen: 700 times
Last updated: 3/16/15, 8:10 AM