EAN code validation fails
Bug #606325 reported by
Gerhard du Toit
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Wishlist
|
OpenERP R&D Addons Team 2 |
Bug Description
Valid 14 digit outer case codes that fails the ean validation check all the time.
Tried with product-gtin module as well but still fails
Here are some examples.
16009657970026
16001009005806
running version 5.0.12
Related branches
lp:~openerp-dev/openobject-addons/ron-dev-addons2
- OpenERP Core Team: Pending requested
-
Diff: 54 lines (+9/-3)2 files modifiedmrp_operations/mrp_operations.py (+8/-2)
product/product.py (+1/-1)
summary: |
- ean validation fails + EAN code validation fails |
Changed in openobject-addons: | |
assignee: | nobody → Anup (Open ERP) (ach-openerp) |
status: | New → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Confirmed |
importance: | Undecided → Wishlist |
assignee: | Anup (OpenERP) (ach-openerp) → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
please try with attached chricar_ product_ gtin
IMHO it's a bug in the server as the constraint in product.py must be disabled manually , after doing so the constraint check works.
product/product.py
#_constraints = [(_check_ean_key, 'Error: Invalid ean code', ['ean13'])]
you should get an different message entering code like
"Error: Invalid Bar Code Number"