# Alert while creating a product with ean13 barcode filed: Error occurred while validating the field(s) ean13: You provided an i

By
samba
on 8/5/14, 5:10 AM 1,549 views

#### 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 8/5/14, 6:58 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.

Thank you Remya, This is valuable information to me. Can you please tell me how to configure openerp 7.0 to use with barcode reader.

samba
on 8/5/14, 7:40 AM

Hi Remya, What is the problem i may face, if i remove this constraint?. I want to work with all type of bar code formats. Here we can enter only one ean13

samba
on 8/21/14, 10:27 AM

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.

1 follower(s)

### Stats

 Asked: 8/5/14, 5:10 AM Seen: 1549 times Last updated: 3/16/15, 8:10 AM