projects
/
odoo
/
odoo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[MERGE]
[odoo/odoo.git]
/
addons
/
point_of_sale
/
wizard
/
pos_scan_product.py
diff --git
a/addons/point_of_sale/wizard/pos_scan_product.py
b/addons/point_of_sale/wizard/pos_scan_product.py
index
49cd32e
..
391b6a7
100644
(file)
--- a/
addons/point_of_sale/wizard/pos_scan_product.py
+++ b/
addons/point_of_sale/wizard/pos_scan_product.py
@@
-25,9
+25,11
@@
from tools.translate import _
class pos_scan_product(osv.osv_memory):
_name = 'pos.scan.product'
_description = 'Scan product'
class pos_scan_product(osv.osv_memory):
_name = 'pos.scan.product'
_description = 'Scan product'
+
_columns = {
_columns = {
- 'gencod': fields.char('Barcode',size=13,required= True)
+ 'gencod': fields.char('Barcode', size=13, required=True)
}
}
+
def scan(self, cr, uid, ids, context=None):
"""
To get the gencod and scan product
def scan(self, cr, uid, ids, context=None):
"""
To get the gencod and scan product
@@
-40,9
+42,10
@@
class pos_scan_product(osv.osv_memory):
if context is None:
context = {}
data=self.read(cr, uid, ids)[0]
if context is None:
context = {}
data=self.read(cr, uid, ids)[0]
- record_id = context and context.get('active_id',False)
+ record_id = context and context.get('active_id', False)
result =self. pool.get('pos.order.line')._scan_product(cr, uid, data['gencod'], 1, record_id)
return {'gencod': False}
result =self. pool.get('pos.order.line')._scan_product(cr, uid, data['gencod'], 1, record_id)
return {'gencod': False}
+
pos_scan_product()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
pos_scan_product()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: