Skip to main content

Webkit Report Barcode

Project description

License: AGPL-3

Webkit Report Barcode

This module Add barcodes in webkit reports

Usage

To embed a barcode image in a webkit report, use ${helper.barcode(value)}. Depending on template filtering, you might need to force not to use any filter by doing ${helper.barcode(value) | safe}

The function is defined as:

barcode(value, code=’Code128’, drawOpts=None, htmlAttrs=None)

Parameters

value

Value for barcode as expected by barcode type. Code128 takes a number or numeric string

code

barcode type. ReportLab 2.5 has the following codes: Codabar, Code11, Code128, EAN13, EAN8, Extended39, Extended93, FIM, I2of5, MSI, POSTNET, QR, Standard39, Standard93, USPS_4State

drawOpts

dictionary of options for reportlab graphic. Depends on barcode type. Use format to specify image format (default png), width to specify image width in pixels (int), height to specify image height in pixels (int)

htmlAttrs

dictionary of html attributes

Requirements

This module depends on reportlab and lxml, which are both part of the odoo installation.

Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo8_addon_report_webkit_barcode-8.0.1.0.0.99.dev3-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo8_addon_report_webkit_barcode-8.0.1.0.0.99.dev3-py2-none-any.whl
Algorithm Hash digest
SHA256 1633769e7464d0f851eef03022e1a8ec46ff8cb899fe36ab448762dfd5d7d67a
MD5 6202719dd32cd08096c909424fbbc9f5
BLAKE2b-256 e7692a49b836a8a3da7d0792ae30c7bd4a576f18d418ab55e0bbdb30907a012c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page