Community mailing list archives
Re: Get records using Save & Create buttonby
Lambda Networks AS, Levent Karakaş
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 <firstname.lastname@example.org>:
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.