summaryrefslogtreecommitdiff
path: root/addons/barcodes/barcodes.py
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2014-11-06 14:57:33 +0100
committerFrédéric van der Essen <fvdessen@gmail.com>2014-11-26 11:46:21 +0100
commite0c1db3a68b9662e70e0cc99e95f521792bc2d79 (patch)
treeb0e66a7b87a3bf3b8067de22bbd6843a3b8c0be6 /addons/barcodes/barcodes.py
parent1f64c22eeb01d555e67a297957aa4c82f716de21 (diff)
[FIX] stock, point_of_sale: default patterns loaded
Diffstat (limited to 'addons/barcodes/barcodes.py')
-rw-r--r--addons/barcodes/barcodes.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/barcodes/barcodes.py b/addons/barcodes/barcodes.py
index 8e9004aea78..b74e60280dd 100644
--- a/addons/barcodes/barcodes.py
+++ b/addons/barcodes/barcodes.py
@@ -157,10 +157,6 @@ class barcode_nomenclature(osv.osv):
class barcode_rule(models.Model):
_name = 'barcode.rule'
_order = 'sequence asc'
-
- def _get_type_selection(self, cr, uid, context=None):
- # return [('product','Unit Product'),('weight','Weighted Product'),('price','Priced Product'),('discount','Discounted Product'),('client','Client'),('cashier','Cashier'),('location','Location'),('lot','Lot'),('package','Package')]
- return [('product','Unit Product')]
_columns = {
'name': fields.char('Rule Name', size=32, required=True, help='An internal identification for this barcode nomenclature rule'),
@@ -172,7 +168,6 @@ class barcode_rule(models.Model):
'pattern': fields.char('Barcode Pattern', size=32, help="The barcode matching pattern"),
#'alias': fields.char('Alias',size=32,help='The matched pattern will alias to this barcode'),
}
- #type = openerp.fields.Selection([('product','Unit Product')],'Type', required=True)
_defaults = {
'type': 'product',