ventor-tech / merp

mERP Warehouse free addons to simplify works with scanner
28 stars 40 forks source link

Barcodes are not readable and not searchable Product Multiple barcode #148

Open ajas91 opened 3 years ago

ajas91 commented 3 years ago

I have an issue with the module when installed on Odoo 12. Inside the POS if we scan the barcode it will not detect the item automatically. Also the search does not work properly.

okuryan commented 3 years ago

@ajas91 , this module will not work with POS. POS is using absolutely different approach to searching. Odoo designed it in a way that it will work offline. So if you need it in POS you will need to develop it yourself You need to be Javascript developer to implement it properly

Some tips: 1) This is method where product is searched by barcode https://github.com/odoo/odoo/blob/12.0/addons/point_of_sale/static/src/js/db.js#L153 2) Here also we fill in special variable that remembers in browser all product barcodes https://github.com/odoo/odoo/blob/12.0/addons/point_of_sale/static/src/js/db.js#L207 3) Here is list of offline fields that are used to load all products into offline storage plus here all products are loaded from Odoo database https://github.com/odoo/odoo/blob/12.0/addons/point_of_sale/static/src/js/models.js#L370