Skip to Content
Menu
This question has been flagged

been reading the documentation hoping to find how to work with uncommitted data but no luck. anybody has experience?

if I pass one2many field named "values" to context i can read it. but the context is not a shared object with modal form thus makes me write longer code than needed.

here is the output of values in logger:

{'lang': 'en_US', 'tz': False, 'uid': 1, 'values': [[4, 1, False], [0, 'virtual_159', {'amount_select': 'percent', 'amount_range_max': 0, 'group_id': 2, 'nutrient_id': 9, 'amount_percent': 0, 'amount_range_min': 0, 'amount_fixed': 0}], [0, 'virtual_173', {'amount_select': 'percent', 'amount_range_max': 0, 'group_id': 1, 'nutrient_id': 25, 'amount_percent': 0, 'amount_range_min': 0, 'amount_fixed': 0}]], 'params': {'action': 86}}


Avatar
Discard

Do you need it on another model? cant we use with_context func

Author

yes, i need it on another model for filtering purposes on modal. with Save & Close, works with extra lines of coding. with Save & New, what is there for Save & Close, not working at all. it breaks the functionality.

Related Posts Replies Views Activity
4
Oct 22
29037
0
Sep 19
2618
4
Oct 21
35813
1
Oct 20
10607
1
Mar 15
3840