Skip to Content
Menu
This question has been flagged
3 Replies
8257 Views

Hello guys, I am a newbie in OpenERP. I want ask how to change parent field value through child tree or form when child field is on change ?

For example: I have total weight field in parent and i want to decrease the total weight every time I add or edit child data. Child has product_weight field.

How can I do this? Someone please help.. Thank you..

Avatar
Discard

I have tried your advice and it works. Thank u for your answer deep. hehehe

Best Answer

Use onchange_event in the parent object...

specify onchange_event on your o2m lines, which will take o2m as paramter too.. then return resulting value

Avatar
Discard
Author

Thank u for your quick respons deep. Do u have any example code? for XML view and .py file. I am still confuse in return value for parent field.

Related Posts Replies Views Activity
1
Mar 15
6991
2
Jan 21
4713
1
Apr 24
297
1
Jul 23
4374
0
May 17
3366