[UPD] README.rst
parent
2d231648bf
commit
4dc8a0a017
|
@ -51,6 +51,10 @@ When creating new reports, you should use a path like the following::
|
|||
|
||||
<img t-att-src="'/report/qr/?value=%s&error_correction=%s' % ('HELLO WORLD!', 3)" style="width:100;height:100"/>
|
||||
|
||||
OR::
|
||||
|
||||
<img t-att-src="'/report/qr/image_name.ext?value=%s&error_correction=%s' % ('HELLO WORLD!', 3)" style="width:100;height:100"/>
|
||||
|
||||
|
||||
The **error_correction** parameter controls the error correction used for the QR Code. The following four constants are made available:
|
||||
|
||||
|
@ -66,6 +70,8 @@ The **version** parameter is an integer from 1 to 40 that controls the size of t
|
|||
|
||||
**fill_color** and **back_color** can change the background and the painting color of the QR, when using the default image factory.
|
||||
|
||||
Adding a trailing filename at the url will allow downloading the qr image with that name proposed.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
|
|
|
@ -396,6 +396,10 @@ ul.auto-toc {
|
|||
<pre class="literal-block">
|
||||
<img t-att-src="'/report/qr/?value=%s&amp;error_correction=%s' % ('HELLO WORLD!', 3)" style="width:100;height:100"/>
|
||||
</pre>
|
||||
<p>OR:</p>
|
||||
<pre class="literal-block">
|
||||
<img t-att-src="'/report/qr/image_name.ext?value=%s&amp;error_correction=%s' % ('HELLO WORLD!', 3)" style="width:100;height:100"/>
|
||||
</pre>
|
||||
<p>The <strong>error_correction</strong> parameter controls the error correction used for the QR Code. The following four constants are made available:</p>
|
||||
<ul class="simple">
|
||||
<li><strong>error_correction</strong> = 1: About 7% or less errors can be corrected.</li>
|
||||
|
@ -407,6 +411,7 @@ ul.auto-toc {
|
|||
The <strong>border</strong> parameter controls how many boxes thick the border should be (the default is 4, which is the minimum according to the specs).</p>
|
||||
<p>The <strong>version</strong> parameter is an integer from 1 to 40 that controls the size of the QR Code (the smallest, version 1, is a 21x21 matrix). Set to None and use the fit parameter when making the code to determine this automatically.</p>
|
||||
<p><strong>fill_color</strong> and <strong>back_color</strong> can change the background and the painting color of the QR, when using the default image factory.</p>
|
||||
<p>Adding a trailing filename at the url will allow downloading the qr image with that name proposed.</p>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
|
||||
|
|
Loading…
Reference in New Issue