i try add this Function..
this.add_action_button({
label: _t('Validate'),
name: 'validation',
icon: '/point_of_sale/static/src/img/icons/png48/validate.png',
click: function(){
self.validate_order();
var x = document.getElementById('appr-code').value;
if(x.display == '' || x.display == 'none')
{
x.display = 'block';
}
else
{
document.getElementById('appr').value = x;
}
var xx = document.getElementById('receipt-note').value;
if(xx.display == '' || xx.display == 'none')
{
xx.display = 'block';
}
else
{
document.getElementById('note').value = xx;
}
//openerp_pos_screens.execute_kw('INSERT INTO pos_order(appr,note) VALUES (x,xx)');
var names = [x];
var notes = [xx];
},
});
how can i Stored this specific value.. i have two fields name x and xx in POS.ORDER