Community mailing list archives

community@mail.odoo.com

Fwd: Get records using Save & Create button

by
CAYLEY CONSULTING, Omar OUHARI
- 03/28/2016 15:34:31
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.