I am trying to trace how orders from touchscreen interface of the point of sale module are saved to database but to no avail. I have tracked the process but don't understand how these scripts saves order/s to the database.
file: addons/point_of_sale/static/src/js/db.js
* save: function(store,data){
//alert(store);
//alert(this.look_deep(data));
var str_data = JSON.stringify(data);
localStorage[this.name + '_' + store] = JSON.stringify(data);
this.cache[store] = data;
},
*In a series of function calls this was the last called. But I don't understand how this script would save data to the database. Is this the function that saves or is there anything else involved in the process.