Merge lp:~openerp-dev/openobject-addons/trunk-pos_barcode_reader_61-rlo into lp:openobject-addons/6.1

Proposed by Roberto López López
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-pos_barcode_reader_61-rlo
Merge into: lp:openobject-addons/6.1
Diff against target: 213 lines (+127/-3)
4 files modified
point_of_sale/point_of_sale_demo.xml (+3/-0)
point_of_sale/static/src/js/pos.js (+120/-2)
point_of_sale/static/src/xml/pos.xml (+3/-0)
product/product.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-pos_barcode_reader_61-rlo
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+100374@code.launchpad.net

Description of the change

Implement into 6.1 branch the code from trunk.

To post a comment you must log in.
Revision history for this message
Roberto López López (bergensk) wrote :

This allows to use a barcode reader on the point of sale.

Unmerged revisions

6722. By Roberto López López

[imp] implement changes from trunk into 6.1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'point_of_sale/point_of_sale_demo.xml'
2--- point_of_sale/point_of_sale_demo.xml 2012-01-05 08:56:58 +0000
3+++ point_of_sale/point_of_sale_demo.xml 2012-04-02 09:18:21 +0000
4@@ -672,6 +672,7 @@
5 <record id="belle_vue_kriek_25cl" model="product.product">
6 <field name="list_price">0.83</field>
7 <field name="name">Belle-Vue Kriek 25cl</field>
8+ <field name='ean13'>5410228193449</field>
9 <field name="pos_categ_id" ref="fruity_beers"/>
10 <field name="product_image">/9j/4AAQSkZJRgABAAEBLAEsAAD/2wCEAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9PjsBCwoKDg0OHBYWHCgoKCgoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O//AABEIAGQAYAMBEQACEQEDEQH/xA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cieFdwjaTcu3Iz2z096QHlzXU6A4IJHcjmlyod2Kl5cPE26QjpjFCiguzoLT4R6vrGmQ6zbXESvOxYW82UO3sc+/4cYp2ETj4V+KvPB+yQbc9fPXH86BnceCfh5LoN+NU1K4SS5UHy4ouVTIwSSepxQI7C50bS7yQyXWm2k7nq0kCsfzIpgTW1laWSlbW1hgU9RFGFH6UATUAFAAaAAGkAhAIIIBB6g0Ac5ffD/wAMX8plk0xI2bk+SzID+AOKAJNP8C+GtMcSW+lRM4OQ0pMn/oRIoA6AcDAoAM0AGaADNABmgAzQAZoACeKAAP/Z</field>
11 </record>
12@@ -679,12 +680,14 @@
13 <record id="leffe_brune_33cl" model="product.product">
14 <field name="list_price">1.00</field>
15 <field name="name">Leffe Brune 33cl</field>
16+ <field name='ean13'>5410228142164</field>
17 <field name="pos_categ_id" ref="special_beers"/>
18 <field name="product_image">/9j/4AAQSkZJRgABAAEBLAEsAAD/2wCEAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9PjsBCwoKDg0OHBYWHCgoKCgoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O//AABEIAF8AZAMBEQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIE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wZUKhELA5yRkk/nRYLm14n8AaN4puUvLkSw3aLtE0R6gdAQeDTsJM5N/gbaPOZBrkqj0+zj+e6lZjujqvC3w+0jwrcNd27S3F2ylfOlI+UdwAOn607CbKms/CzQdUupbuAy2U0xLP5eChPc7T0/AigLmJD8EbKOXc2tTMvoIAD+eaNR3O38OeF9N8L2bW2no+ZCDJJI2WcjpmhITdzYpiAAP/Z</field>
19 </record>
20 <record id="leffe_blonde_33cl" model="product.product">
21 <field name="list_price">1.00</field>
22 <field name="name">Leffe Blonde 33cl</field>
23+ <field name='ean13'>5410228142218</field>
24 <field name="pos_categ_id" ref="special_beers"/>
25 <field name="product_image">/9j/4AAQSkZJRgABAAEBLAEsAAD/2wCEAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9PjsBCwoKDg0OHBYWHCgoKCgoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O//AABEIAGQAXAMBEQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZna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vhj4R02USppazuDkfaHaQf98k4/SnYLnVKqooVVCqowABgAUCHUAFABQAUAFABQAUAAD/2Q==</field>
26 </record>
27
28=== modified file 'point_of_sale/static/src/js/pos.js'
29--- point_of_sale/static/src/js/pos.js 2012-02-24 14:49:39 +0000
30+++ point_of_sale/static/src/js/pos.js 2012-04-02 09:18:21 +0000
31@@ -85,7 +85,8 @@
32 }, this));
33 }, this));
34 $.when(this.fetch('pos.category', ['name', 'parent_id', 'child_id']),
35- this.fetch('product.product', ['name', 'list_price', 'pos_categ_id', 'taxes_id', 'product_image_small'], [['pos_categ_id', '!=', 'false']]),
36+ this.fetch('product.product', ['name', 'list_price', 'pos_categ_id', 'taxes_id', 'product_image_small', 'ean13', 'id'], [['pos_categ_id', '!=', 'false']]),
37+ this.fetch('product.packaging', ['product_id', 'ean']),
38 this.fetch('account.bank.statement', ['account_id', 'currency', 'journal_id', 'state', 'name'],
39 [['state', '=', 'open'], ['user_id', '=', this.session.uid]]),
40 this.fetch('account.journal', ['auto_cash', 'check_dtls', 'currency', 'name', 'type']),
41@@ -1253,12 +1254,126 @@
42 this.categoryView.children = c.children;
43 this.categoryView.render_element();
44 this.categoryView.start();
45+ allProducts = pos.store.get('product.product');
46+ allPackages = pos.store.get('product.packaging');
47 products = pos.store.get('product.product').filter( function(p) {
48 var _ref;
49 return _ref = p.pos_categ_id[0], _.indexOf(c.subtree, _ref) >= 0;
50 });
51 (this.shop.get('products')).reset(products);
52+ var checkEan = function(code) {
53+ // EAN control digit calculation
54+ var st1 = code.slice();
55+ var st2 = st1.slice(0,st1.length-1).reverse();
56+ // some EAN13 barcodes have a length of 12, as they start by 0
57+ while (st2.length < 12) {
58+ st2.push(0);
59+ }
60+ var countSt3 = 1;
61+ var st3 = 0;
62+ $.each(st2, function() {
63+ if (countSt3%2 === 1) {
64+ st3 += this;
65+ }
66+ countSt3 ++;
67+ });
68+ st3 *= 3;
69+ var st4 = 0;
70+ var countSt4 = 1;
71+ $.each(st2, function() {
72+ if (countSt4%2 === 0) {
73+ st4 += this;
74+ }
75+ countSt4 ++;
76+ });
77+ var st5 = st3 + st4;
78+ var cd = (10 - (st5%10)) % 10;
79+ return code[code.length-1] === cd;
80+ }
81 var self = this;
82+ // bind barcode reader event
83+ var codeNumbers = [];
84+ $('body').delegate('','keyup', function (e){
85+ if (!isNaN(Number(String.fromCharCode(e.keyCode)))) {
86+ // a number
87+ if (codeNumbers.length==0) {
88+ timeStamp = new Date().getTime();
89+ } else {
90+ if (lastTimeStamp + 30 < new Date().getTime()) {
91+ // not a barcode reader
92+ codeNumbers = [];
93+ timeStamp = new Date().getTime();
94+ }
95+ }
96+ codeNumbers.push(e.keyCode - 48);
97+ lastTimeStamp = new Date().getTime();
98+ if (codeNumbers.length == 13) {
99+ // a barcode reader
100+ if (!checkEan(codeNumbers)) {
101+ // barcode read error, raise warning
102+ $(QWeb.render('pos-scan-warning')).dialog({
103+ resizable: false,
104+ height:220,
105+ modal: true,
106+ title: "Warning",
107+ buttons: {
108+ "OK": function() {
109+ $( this ).dialog( "close" );
110+ return;
111+ },
112+ }
113+ });
114+ }
115+ var barcode = codeNumbers.join('');
116+ var selectedOrder = self.shop.get('selectedOrder');
117+ if (barcode.substring(0,2) in {'02':'', '22':'', '24':'', '26':'', '28':''}) {
118+ // PRICE barcode
119+ price = Number(barcode.substring(7,12))/100;
120+ barcode = barcode.substring(0,7);
121+ var scannedPackaging = _.detect(allPackages, function(pack) { return pack.ean !== undefined && pack.ean.substring(0,7) === barcode;});
122+ if (scannedPackaging !== undefined) {
123+ var scannedProductModel = _.detect(allProducts, function(pc) { return pc.id === scannedPackaging.product_id[0];});
124+ scannedProductModel.list_price = price;
125+ }
126+ } else if (barcode.substring(0,2) in {'21':'','23':'','27':'','29':'','25':''}) {
127+ // WEIGHT barcode
128+ weight = Number(barcode.substring(7,12))/1000;
129+ barcode = barcode.substring(0,7);
130+ var scannedPackaging = _.detect(allPackages, function(pack) { return pack.ean !== undefined && pack.ean.substring(0,7) === barcode;});
131+ if (scannedPackaging !== undefined) {
132+ var scannedProductModel = _.detect(allProducts, function(pc) { return pc.id === scannedPackaging.product_id[0];});
133+ scannedProductModel.list_price *= weight;
134+ scannedProductModel.name += ' - ' + weight + ' Kg.'
135+ }
136+ } else {
137+ // UNIT barcode
138+ var scannedProductModel = _.detect(allProducts, function(pc) { return pc.ean13 === barcode;});
139+ }
140+ if (scannedProductModel === undefined) {
141+ // product not recognized, raise warning
142+ $(QWeb.render('pos-scan-warning')).dialog({
143+ resizable: false,
144+ height:220,
145+ modal: true,
146+ title: "Warning",
147+ buttons: {
148+ "OK": function() {
149+ $( this ).dialog( "close" );
150+ return;
151+ },
152+ }
153+ });
154+ } else {
155+ selectedOrder.addProduct(new Product(scannedProductModel));
156+ }
157+
158+ codeNumbers = [];
159+ }
160+ } else {
161+ // NaN
162+ codeNumbers = [];
163+ }
164+ });
165 $('.searchbox input').keyup(function() {
166 var m, s;
167 s = $(this).val().toLowerCase();
168@@ -1274,7 +1389,7 @@
169 return (self.shop.get('products')).reset(m);
170 });
171 return $('.search-clear').click( function() {
172- (this.shop.get('products')).reset(products);
173+ (self.shop.get('products')).reset(products);
174 $('.searchbox input').val('').focus();
175 return $('.search-clear').fadeOut();
176 });
177@@ -1374,6 +1489,9 @@
178 }, this));
179 },
180 close: function() {
181+ // remove barcode reader event listener
182+ $('body').undelegate('', 'keyup')
183+
184 return new db.web.Model("ir.model.data").get_func("search_read")([['name', '=', 'action_pos_close_statement']], ['res_id']).pipe(
185 _.bind(function(res) {
186 return this.rpc('/web/action/load', {'action_id': res[0]['res_id']}).pipe(_.bind(function(result) {
187
188=== modified file 'point_of_sale/static/src/xml/pos.xml'
189--- point_of_sale/static/src/xml/pos.xml 2012-02-09 14:23:55 +0000
190+++ point_of_sale/static/src/xml/pos.xml 2012-04-02 09:18:21 +0000
191@@ -141,6 +141,9 @@
192 </a>
193 </span>
194 </t>
195+ <t t-name="pos-scan-warning">
196+ <div>The product could not be recognized. Please contact an employee.</div>
197+ </t>
198 <t t-name="pos-close-warning">
199 <div>There are pending operations that could not be saved into the database, are you sure you want to exit?</div>
200 </t>
201
202=== modified file 'product/product.py'
203--- product/product.py 2012-02-14 14:34:20 +0000
204+++ product/product.py 2012-04-02 09:18:21 +0000
205@@ -517,7 +517,7 @@
206 'active': fields.boolean('Active', help="If the active field is set to False, it will allow you to hide the product without removing it."),
207 'variants': fields.char('Variants', size=64),
208 'product_tmpl_id': fields.many2one('product.template', 'Product Template', required=True, ondelete="cascade"),
209- 'ean13': fields.char('EAN13', size=13),
210+ 'ean13': fields.char('EAN13', size=13, help='Barcode'),
211 'packaging' : fields.one2many('product.packaging', 'product_id', 'Logistical Units', help="Gives the different ways to package the same product. This has no impact on the picking order and is mainly used if you use the EDI module."),
212 'price_extra': fields.float('Variant Price Extra', digits_compute=dp.get_precision('Sale Price')),
213 'price_margin': fields.float('Variant Price Margin', digits_compute=dp.get_precision('Sale Price')),