Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
133 Näkymät

I can't use the QR Code, I've seen several videos on YouTube where it says that I have to activate the developer option in the settings and then in the User activate the QR Code Generator field, but it doesn't exist


Avatar
Hylkää
Paras vastaus

What I want is for my products to use QR CODE and not BARCODE, how do I do this?

Avatar
Hylkää
Paras vastaus

Option A: Use Built-in QR Code Rendering in Reports


  • Odoo natively supports QR codes in QWeb reports using widget='qrcode'.
  • No need for any setting, just include the following in your QWeb report template:
	​<t t-esc="'Your content here'" t-options='{"widget": "qrcode"}'/>


  • Example – QR Code for an Invoice Number:
  • <t t-esc="o.name" t-options='{"widget": "qrcode"}'/>


Option B: Use base Module's QR Code in Forms or Custom Views

  • Odoo includes a field widget for QR codes that can be used in forms or kanban views.

Add QR Code in a Form View

  • You can add a QR code to a form by editing the XML of the view (via custom module or Studio in developer mode):
<field name="name" widget="qrcode"/>


  • This will display a QR code for the "name" field (can be any text-type field).


Common Mistakes to Avoid:

  • Searching for a non-existent "QR Code Generator" field in user settings — it doesn't exist in stock Odoo.
  • Not activating developer mode when customizing views.
  • Expecting QR scanning functionality (that's handled externally by apps or scanners).


Thanks & Regards,

Company :- DataInteger Consultancy Services LLP

Avatar
Hylkää