I have a document dynamically generated with Odoo. I have n divs that inside can have input box with different type, checkbox, text, number etc etc.
For now when the user change one field i make an rpc call to backend and store the value of the changed view.
But this is a problem because the client server is very slow....and every write to db take a lot of time....and this is a checklist and it's not good.
Solution: Now i want let to user change all field that he want and after with a button "Update" make a write for all changed views.
Problem
I'm not skilled with javascript and don't know how to implement this.
For now i think to put all generated row inside a tag form
and when the user click the button "Update" call with javascritp form_id.submit()
and find a way to retrieve all different name of the input and store the values.
There is some better way to do that? Something like: if the user change one field instead of make a call to store new data, put all information into a dictionary, list, array or something else...and when the user press Update i read this structure and store all data inside.
EDIT dictionary of dictionaries:
dict= {
id_line:{key:values, key:values}
id_line:{key:values, key:values}
...
}