summaryrefslogtreecommitdiff
path: root/addons/barcodes/static/src/js/barcode_parser.js
AgeCommit message (Collapse)Author
2019-03-06[REF] barcodes: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2018-06-21[FIX] barcodes: nomenclatureNicolas Martinelli
Loads the barcode nomenclature only if one has been is defined. Indeed, from commit 80e89c7a11d16fa, the POS config unset the `barcode_nomenclature_id` field if the barcode support is not activated. opw-1859928
2017-06-26[MERGE] forward port branch saas-15 up to 4d79a1ff58fChristophe Simonis
2017-06-16[FIX] barcodes: comply the ean parser with reportlab.graphics.barcodeLucas Perais (lpe)
Before this commit, the JS parser would add 0 after the input, then add the ean key. Whereas reportlab.graphics.barcode fills the input with 0's on the left, then add the key http://pydoc.net/Python/reportlab/2.5/reportlab.graphics.barcode.eanbc/ At: Ean13BarcodeWidget.__init__() This commit makes the ean parser coherent with the lib the python uses
2017-04-11[REF] web, *: simplify our RPC system (in JS)Géry Debongnie
The RPC system was not completely satisfactory, we decided to prepare the future and do it properly. This commit introduces the new rpc system, which replace the previous new one. We now simply have a method, this._rpc, which takes a dictionary of parameters. The idea is that depending on the parameters, it is able to add correct default value when necessary. For situations where we don't have the this._rpc method, we can use the rpc.query method, which takes the same arguments, but directly calls ajax.rpc instead of triggering up some events.
2017-04-11[REF] *: use _rpc method for all rpcsGéry Debongnie
The _rpc method is now the preferred method to do a rpc, so we need to update all calls.
2017-04-11[REF] web,*: remove 'web.model' and 'web.dataModelGéry Debongnie
Use this.rpc instead of Model object, with web.ajax if necessary. nb: EventDispatcherMixin include now the custom_events managment instead of widget
2015-07-22[MERGE] forward port of branch saas-6 up to 63e92cbChristophe Simonis
2015-07-10[IMP] web: split model.js into model.js and data_model.js. Web js modules ↵Christophe Matthieu
must call web.DataModel.
2015-07-02[FIX] barcode_parser: don't match end of lineJoren Van Onder
Causes issues with the card reader device.
2015-06-29[FIX] barcodes: correctly recompute the checksum of the product barcode when ↵Frédéric van der Essen
guessing it from a value encoding barcode
2015-05-28[MERGE] forward port of branch saas-6 up to bf1e999Christophe Simonis
2015-05-05[FIX] point_of_sale: barcode patterns must match barcode as prefix, (and not ↵Frédéric van der Essen
anywhere in barcode)
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] barcodes: update to the new module systemGéry Debongnie
2015-01-28[FIX] barcodes: typo in function nameFrédéric van der Essen
2015-01-13[IMP] barcodes, point_of_sale : add support for UPC-A barcodesFrédéric van der Essen
- Added support for UPC-A Barcodes - Add a way to automatically convert UPC-A to and from EAN13. This is usefull if you wish to standardise your product barcode encoding in one standard but have a mix of the two in your merchandise. - Various bugfixes.
2014-11-26[FIX] barcodes: parse_barcode functions in PY and JS commentedAaron Bohy
2014-11-26[FIX] barcodes, stock, point_of_sale: parse_barcode function uses regex, ↵Aaron Bohy
pattern and barcodes may now contain special characters \ { and ., special character * replaced by .
2014-11-26[FIX] barcodes: prepend a zero to ean13 barcodes scanned before looking for ↵Aaron Bohy
a match
2014-11-26[FIX] barcodes,point_of_sale,stock,base: minor changes from code reviewAaron Bohy
2014-11-26[FIX] barcodes, point_of_sale: JS functions for parsing barcode moved to ↵Aaron Bohy
module barcodes, BarcodeParser