Community mailing list archives


Re: Get records using Save & Create button

Lambda Networks AS, Levent Karakaş
- 03/29/2016 04:23:27
You can't get new number of rows when you use "Save & Create" button since it doesn't update the model when pressed. We passed through this when we need to add the sequence number. 

2016-03-28 22:37 GMT+03:00 Omar Ouhari <>:
Hello​ Community​,

I need to retrieve the number of records created on a one2many object when I pass through creation wizard and clicked Save & Create button.
I need this information to increment the number and assign it to another field on the same object. Somthing like that : my_field = len(line_ids) + 1 in default methode of sale.order​.
I know there is the sequence but I will not use it because it does not meet my needs.
I can got this information if I pass throught Save & Close ​or if I set tree editable = bottom but not in form view creation.

Any help please.

Post to: