Merge branch 'master-pos-wms-fva'
[odoo/odoo.git] / addons / point_of_sale / res_partner.py
index 87ca525..73e97d3 100644 (file)
@@ -9,16 +9,5 @@ import openerp.addons.product.product
 class res_users(osv.osv):
     _inherit = 'res.partner'
     _columns = {
-        'ean13' : fields.char('EAN13', size=13, help="BarCode"),
-    }
-
-    def _check_ean(self, cr, uid, ids, context=None):
-        return all(
-            openerp.addons.product.product.check_ean(user.ean13) == True
-            for user in self.browse(cr, uid, ids, context=context)
-        )
-
-    _constraints = [
-        (_check_ean, "Error: Invalid ean code", ['ean13'],),
-    ]
-
+        'barcode' : fields.char('Barcode', help="BarCode", oldname='ean13'),
+    }
\ No newline at end of file