Skip to Content
Menu
This question has been flagged
2194 Views

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



Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
44
1
Dec 24
166
0
Nov 24
83
1
Nov 24
152
1
Nov 24
187