Odoo Help

0

Button is disabled(unclickable) inside the child form?

By
Kuldeep Jadeja
on 9/8/14, 2:47 AM 1,325 views

I am unable to update the amound in my custom product costing module as the button UPDATE AMOUNT(calculate price)

is by default disabled.

If I save the product item and then go to that form, It is clickable, means then I can change the amount of different fields and can update total by clicking that button.

 

Is there a way to have that button to update my TOTAL field by clicking the button?

How to get that button active while creating the PRODUCT ITEM? and can alter the field values and check them by Clicking UPDATE AMOUNT (calculation) button?

1

deep

--deep--
1695
| 5 5 7
Bengaluru, India
--deep--

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

deep
On 9/8/14, 3:26 AM

Button will become active (i.e clickable) only for saved records (i.e records having id) in child forms... so one cannot make it visible or make it do the funtionality untill and unless the record is saved...

Alternate option, use onchange_event  to serve your purpose... In that way, event will return calculated amount for Total field, and finally when you save the record,  your evaluation method will recompute and proceed with things ....

thank you.

Kuldeep Jadeja
on 9/8/14, 3:32 AM

I am saving the Add item in the product costing sub form, though I am clicking SAVE button on the TOP of the Main Form. It only allows me to click the button which is inside child form after Clicking the SAVE button of Main.... Your Answer completely clears my doubt that it can not be done as I have researched that it is in openerp's nature to restrict updating child without saving Parent. Thanks for the alternate solution......Regards JK

Kuldeep Jadeja
on 9/8/14, 3:36 AM

I have considered the solution you have suggested as Alternate solution, but it might not be easy to fit it in my code.

Kuldeep Jadeja
on 9/8/14, 3:47 AM

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/8/14, 2:47 AM
Seen: 1325 times
Last updated: 3/16/15, 8:10 AM