# what is the use of EAN 13 in PRODUCT? and why i always recieve an error while saving the product with a EAN13 barcode???

By
Alcaline
on 7/23/14, 9:50 PM 921 views

ValidateError

Error occurred while validating the field(s) ean13: You provided an invalid "EAN13 Barcode" reference. You may use the "Internal Reference" field instead.

What are you entering? You need to enter a valid EAN13 barcode number.http://en.wikipedia.org/wiki/International_Article_Number_(EAN)

Ray Carnes
on 7/23/14, 10:58 PM

yes sir i want to enter a valid EAN13 number.. how to solve this problem??

Alcaline
on 7/24/14, 9:20 PM

#### Remya

--Remya--

5617
| 7 8 8
Thiruvananthapuram, India
--Remya--

Working as an Senior ODOO developer. http://in.linkedin.com/pub/remya-r/69/a23/298

Remya
On 7/24/14, 12:18 AM

Calculation of EAN13:

You can choose first 12 numbers. The 13th is computed. Let x be the sum of numbers on odd positions Let y be the sum of numbers on even positions Let z be x+(y*3) Let z' be z rounded up (73 to 80 for example) Then 13th number is z' - z

I show you with 593253012713 example.I selected a 12 digit number and calculating the thirteen digit. So (5+3+5+0+2+1) = 16, (9+2+3+1+7)*3 = 75. Therefore we have 16 + 75 = 91. Then rounded(91) - 91 is 100 - 91 = 9. So the last digit should be 9 and then it's a valid EAN code 5932530127139

OR

Install point_of_sale module and this will enable Button 'Set a Custom EAN' below this EAN13 field and with help of this button you can add your custom EAN13 no. But this is not recommended.

Hi, how to solve this one (9+2+3+1+7)*3 = 75? when I'm trying to compute this equation I'm getting the answer of 66? how come your answer is 75?? do you have another way of solving it?

Alcaline
on 7/24/14, 9:30 PM
ahmad
On 7/24/14, 11:07 PM

there is a sample checksum for ean13 in javascript file in point-of-sale module, your products should contains the correct number of ean13.

### About This Community

This platform 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.

### Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

2 follower(s)

### Stats

 Asked: 7/23/14, 9:50 PM Seen: 921 times Last updated: 3/16/15, 8:10 AM