[FIX] stock, point_of_sale: default patterns loaded
This commit is contained in:
committed by
Frédéric van der Essen
parent
1f64c22eeb
commit
e0c1db3a68
@@ -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',
|
||||
|
||||
@@ -51,7 +51,7 @@ Main Features
|
||||
'depends': ['sale_stock', 'barcodes'],
|
||||
'data': [
|
||||
'data/report_paperformat.xml',
|
||||
#'data/default_barcode_patterns.xml',
|
||||
'data/default_barcode_patterns.xml',
|
||||
'security/point_of_sale_security.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'wizard/pos_box.xml',
|
||||
|
||||
@@ -66,7 +66,7 @@ Dashboard / Reports for Warehouse Management will include:
|
||||
'stock_location_demo_cpu3.yml',
|
||||
],
|
||||
'data': [
|
||||
#'data/default_barcode_patterns.xml',
|
||||
'data/default_barcode_patterns.xml',
|
||||
'security/stock_security.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'stock_data.xml',
|
||||
|
||||
Reference in New Issue
Block a user