~akretion-team/openerp-pos/8.0-pos-pay-small-enhancements

« back to all changes in this revision

Viewing changes to pos_cash_deposit/static/src/js/pos_cash_deposit_widget.js

  • Committer: adrien.peiffer at etspeiffer
  • Date: 2014-08-08 10:41:06 UTC
  • Revision ID: adrien.peiffer@etspeiffer.be-20140808104106-npjq2fakj41vpnx1
[IMP] Improve pos cash deposit module

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
            this._super();
8
8
            this.cash_deposit_popup = new module.CashDepositPopupWidget(this, {});
9
9
            this.cash_deposit_popup.appendTo(this.$el);
10
 
            
11
 
            this.screen_selector_cash_deposit = new module.ScreenSelector({
12
 
                pos: this.pos,
13
 
                popup_set:{
14
 
                    'cash_deposit': this.cash_deposit_popup,
15
 
                },
16
 
            });
 
10
            this.cash_deposit_popup.hide();
17
11
        },
18
12
    });
19
13
    
78
72
                                                                                'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', 'description_sale', 'description',
79
73
                                                                                'product_tmpl_id','active']).filter([['id', '=', ids[1]],['active', '=', 0]]).context(null).all().then(function(products) {
80
74
                                                                                    products[0].price = amount;
81
 
                                                                                    self.pos.get('selectedOrder').addProduct(products[0]);
 
75
                                                                                    options = {};
 
76
                                                                                    options.merge = false;
 
77
                                                                                    self.pos.get('selectedOrder').addProduct(products[0], options);
82
78
                         });
83
79
                    });
84
80