mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[UPD] README.rst
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<title>Stock Zippcube</title>
|
||||
<style type="text/css">
|
||||
|
||||
@@ -402,12 +402,12 @@ environment variable called ZIPPCUBE_SECRET set to the value of the secret.</p>
|
||||
<p>After you have configured the measuring device in Odoo, you need to configure the device itself.</p>
|
||||
<p>Edit the language file on the computer attached to the device, and set the
|
||||
following parameters (the secret value must be the one generated earlier):</p>
|
||||
<p><tt class="docutils literal">`
|
||||
<span class="pre">REST_Body={"barcode":"%%VAR_NUMBER%%",</span> <span class="pre">"weight":"%%VAR_SCALE_WEIGHT%%",</span> <span class="pre">"length":"%%VAR_LENGTH",</span> <span class="pre">"width":"%%VAR_WIDTH%%",</span> <span class="pre">"height":"%%VAR_HEIGHT%%",</span> "secret": "<insert secret <span class="pre">here>"}</span>
|
||||
<span class="pre">REST_BaseURL=http://<odoo_host_url>/stock/zippcube/<device_name>/measurement</span>
|
||||
<pre class="literal-block">
|
||||
REST_Body={"barcode":"%%VAR_NUMBER%%", "weight":"%%VAR_SCALE_WEIGHT%%", "length":"%%VAR_LENGTH", "width":"%%VAR_WIDTH%%", "height":"%%VAR_HEIGHT%%", "secret": "<insert secret here>"}
|
||||
REST_BaseURL=http://<odoo_host_url>/stock/zippcube/<device_name>/measurement
|
||||
REST_ContentType=application/json
|
||||
REST_AcceptEncoding=gzip, deflate
|
||||
`</tt></p>
|
||||
</pre>
|
||||
<p>For local testing you can use the script in <cite>scripts/measurement.sh</cite></p>
|
||||
</div>
|
||||
<div class="section" id="configuration">
|
||||
|
||||
Reference in New Issue
Block a user