summaryrefslogtreecommitdiff
path: root/addons/barcodes/static/src/js/barcode_field.js
AgeCommit message (Collapse)Author
2019-09-23[FIX] *: hide technical field widgets in non-debug mode (Studio)Juhil Somaiya
*: - account - barcodes - calenndar - hr_timesheet - mail - mass_mailing - partner_autocomplete - web - website_slides This commit removes description of fields that should not be shown in non-debug mode Studio. Only field widgets whose own description is set are displayed in non-debug mode Studio in "Widget" of sidebar. In other words, even if any ancestor has a description but not the current widget, it won't be displayed in the sidebar in non-debug mode. Task-Id 2056992 closes odoo/odoo#35902 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-04-24[IMP] web, *: add a description to generic widgetsJuhil Somaiya
A `description` key has been added on AbstractField and all generic field widgets ; it is used to display a more user friendly name (both in the webclient and in Studio). Non-generic field widgets have an empty string as description. Related task 1918327 closes odoo/odoo#30131 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com> Co-authored-by: Mohammed Shekha <msh@openerp.com>
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>
2019-01-09[FIX] barcodes: JS documenter fails to infer BarcodeEventsXavier Morel
As a result, parsing the JS fails and so does the doc compilation. Fixes odoo/odoo#29197 Fixes odoo/odoo#29961 closes odoo/odoo#30057
2018-12-07[FIX] barcodes: allow special keys input on firefoxlen-odoo
Install stock_barcode. It adds a barcode to the product quantity of the inventory adjustment view. On firefox special characters are ignored (CTRL, BACKSPACE, Fn...) closes odoo/odoo#29245
2017-08-25[FIX] barcodes: barcode_handler widget should be genericAaron Bohy
When a barcode field with widget="barcode_handler" is in a form view, an onchange RPC should be done each time a barcode is scanned. Before this rev., it worked by chance because the views using it don't define a 'pack_operation_product_ids' field. Anyway, this widget is meant to be generic, so it shouldn't hardcode a fieldname.
2017-08-25[FIX] barcodes: don't trigger onchange at each keypressAaron Bohy
When a keypress event is triggered in a 'field_float_scannable' widget, the event is first catched by the barcodes mechanism, and then manually re-triggered. However, the way it was done implied that the environment was notified of each keypress event, so if there was an onchange on that particular field, an onchange RPC was done at each keypress. Moreover, the focus was lost at each keypress as well.
2017-08-25[FIX] barcodes: fix several issues when scanning barcodesAkash Bhavsar
Since the new views, most of the barcodes feature was broken. This commit re-enables the support of commands like 'edit', 'save', 'cancel', 'previous' and 'next'. Also changed javascript event handler to jquery event handler to make barcodes testable in phantomjs.
2017-04-25[IMP] barcode: add some javascript docstringChristophe Matthieu
2017-04-11[REF] barcode, *: update code to new JS frameworkChristophe Matthieu
With the new views, the barcode mechanisms were completely broken, because the view and widget JS code was totally changed. This commit update and refactor all that code to make it work with the new design philosophy. Also, it update the coding style.