[UPD] README.rst

pull/539/head
OCA-git-bot 2021-05-15 18:33:12 +00:00
parent 2d231648bf
commit 4dc8a0a017
2 changed files with 11 additions and 0 deletions

View File

@ -51,6 +51,10 @@ When creating new reports, you should use a path like the following::
<img t-att-src="'/report/qr/?value=%s&amp;error_correction=%s' % ('HELLO WORLD!', 3)" style="width:100;height:100"/> <img t-att-src="'/report/qr/?value=%s&amp;error_correction=%s' % ('HELLO WORLD!', 3)" style="width:100;height:100"/>
OR::
<img t-att-src="'/report/qr/image_name.ext?value=%s&amp;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: 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. **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 Bug Tracker
=========== ===========

View File

@ -396,6 +396,10 @@ ul.auto-toc {
<pre class="literal-block"> <pre class="literal-block">
&lt;img t-att-src=&quot;'/report/qr/?value=%s&amp;amp;error_correction=%s' % ('HELLO WORLD!', 3)&quot; style=&quot;width:100;height:100&quot;/&gt; &lt;img t-att-src=&quot;'/report/qr/?value=%s&amp;amp;error_correction=%s' % ('HELLO WORLD!', 3)&quot; style=&quot;width:100;height:100&quot;/&gt;
</pre> </pre>
<p>OR:</p>
<pre class="literal-block">
&lt;img t-att-src=&quot;'/report/qr/image_name.ext?value=%s&amp;amp;error_correction=%s' % ('HELLO WORLD!', 3)&quot; style=&quot;width:100;height:100&quot;/&gt;
</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> <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"> <ul class="simple">
<li><strong>error_correction</strong> = 1: About 7% or less errors can be corrected.</li> <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> 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>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><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>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1> <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>