I was trying to create a record with a few required fields in an editable tree view of a one2many field.

If I entered a record correctly and saved it, the creating and saving of the record were always OK.

But, if I accidentally missed one or few required fields when creating a new record, I received warning messages, which was fine to this point. Then, I entered the missed required fields and saved the record. Then, multiple same records (normally the same number of the warning messages) were saved in the tree view, which was definitely wrong, because I only entered one record in the tree view.

I checked the record in the postgresql database. Yes, there were multiple same records. I also traced the create function. of model. Yes, it was called multiple times and each time it added a same record. The problem only occurs within the tree view of a one2many field. No problem with a normal tree view on normal fields.

How could this problem happen? Is there a fix or is it a bug of openerp v7?

The editable list is what I created from a one2many field. It appears that the problem does not show in the normal editable list. At least I can repeat the problem in the tree view of one2many fields, but not in a normal tree view.

Unfortunately, the code does not work. I opened the form view of lgp.testing and tried to add one record in the tree view of the detail field (one2many). I entered 'val' but left 'date' empty and tried to save a few times. Of course I got a few warning messages for not entering in the required field 'date'. Then, I entered 'date' and saved the record. The problem occurred as a few same records appeared in the tree view. The number of the same records is the same as the number of warning messages. It appears to me that the web cached the non-complete records somehow for saving later.