.. _ref-tools-qrcode:
.. module:: trytond.tools.qrcode

qrcode
======

.. function:: generate_svg(code[, box_size[, border[, error_correction[, background[, foreground]]]]])

   Return a :py:class:`~io.BytesIO` containing the SVG image of the QR Code.

.. function:: generate_png(code[, box_size[, border[, error_correction[, background[, foreground]]]]])

   Return a :py:class:`~io.BytesIO` containing the SVG image of the QR Code.
