Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

7

What kind of barcodes are supported by the Point of Sale ?

By
Frédéric Van Der Essen (fva)
on 1/31/13, 7:58 AM 6,871 views

What standard is used to encode products barcodes in the Point of Sale ? Is it possible to encode price or weight in the barcodes ? Thanks !

I am new to OpenERP , started learning OpenERP 7.0 from last 2 months for my requirement . I have some Question , Please clarify it . 1.) From the post i can understand that , The Point of Sale only supports the EAN13 Barcode Encoding ( Can u please suggest the exact Brand Name for Bar Code Scanner ) 2.) If i correct , it just like plugin (or) Is there any software to be installed for barcode scanner working ? 3.) Also , Is there any module available (apps ) available to make Barcode scanner work ? Please help me ..

omprakash
on 2/22/13, 1:45 AM
15

Frédéric Van Der Essen (fva)

--Frédéric Van Der Essen (fva)--
903
| 6 7 5
--Frédéric Van Der Essen (fva)--

Frédéric worked on different core projects at Odoo since 2012. He is a core developer of the Odoo R&D department. He worked on several projects including the design of the current website and the UI of the open chatter communication tool.

Frédéric is also the owner of the PosBox project and the latest versions of the point of sale frontend.

Frédéric Van Der Essen (fva)
On 1/31/13, 9:23 AM

The Point of Sale only supports the EAN13 Barcode Encoding. Wich means that products are identified by a 13 digit number. These numbers can be used to encode much more than the ID of a product. Here is how it works.

Prefixes

The first two (from the left) or three numbers of the barcode are used to tell the point of sale what kind of data / action is associated with the barcode. Any barcode not matching any prefix is assumed to be a product identifiying barcode.

Actions

Weight

The barcodes starting by 21 and with the following format : 21 XXXXX WWWWW C can be used to encode a product with a specific weight or quantity. The quantity is encoded as a 5 digit number with three decimals in the WWWWW part of the barcode. For the product to be identified it must have an EAN13 barcode matching the 21 XXXXX part of the barcode used to encode weight, the rest is ignored. For your information, C is the checksum used to prevent decoding errors and depends of the 12 previous digits.

Price

The barcodes starting by 23 and with the following format : 23 XXXXX PPPPP C can be used to encode a product with a specific price. It works exactly the same as the Weight barcodes except PPPPP encodes the prices as a 5 digit number with two decimals.

Discount

The barcodes starting by 22 and with the following format : 22 XXXXX DDDDD C can be used to encode a percentage discount that will be applied on the previously ordered product, if the identified product match the product encoded in the discount barcode. The discount is encoded as a 5 digit number with two decimals, and should be between 0.00 and 100.00. Discount barcodes are activated by default. If you use the Point of Sale in self checkout mode, a client with this knowledge could forge discount barcodes and cheat the system. So you may want to disable them in those cases.

Cashier

Barcodes starting with 041 will log any Employee with a matching EAN as the current cashier for the transaction. Cashier badges can also be used in Self-Checkout mode to go back to regular mode and solve any issues.

Client

Barcodes starting with 042 will log any user with a matching EAN as the current Client for the transaction.

Customizing Actions

If this doesn't work for you and you want to change the prefixes, or disable some kind of barcodes, you will have to change the javascript code of the point of sale by extending and overriding the parse_ean() method of the point_of_sale.BarcodeReader class located in addons/point_of_sale/static/src/js/devices.js

I advise you to do this in a new module.

Is there any way to use customized barcode in pos.....

Umashankar Subramani
on 3/25/15, 1:11 AM

Where and how does this barcodes impact in Odoo POS and Core???

Nilim
on 2/18/16, 12:55 AM
0
JP
On 3/11/14, 10:18 PM

My doubt is: How do set an EAN13 with prefix 23 on the product form if require validation? I tried "23 0000 1" but no sucess.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

Asked: 1/31/13, 7:58 AM
Seen: 6871 times
Last updated: 8/20/15, 3:01 AM