odoo-addon-web-widget-remote-measure 15.0.1.1.0__py3-none-any.whl → 17.0.1.0.0.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/web_widget_remote_measure/README.rst +37 -32
- odoo/addons/web_widget_remote_measure/__manifest__.py +2 -4
- odoo/addons/web_widget_remote_measure/i18n/es.po +0 -19
- odoo/addons/web_widget_remote_measure/i18n/web_widget_remote_measure.pot +40 -28
- odoo/addons/web_widget_remote_measure/models/__init__.py +1 -0
- odoo/addons/web_widget_remote_measure/models/remote_measure_device.py +1 -1
- odoo/addons/web_widget_remote_measure/models/res_users.py +2 -0
- odoo/addons/web_widget_remote_measure/models/res_users_settings.py +10 -0
- odoo/addons/web_widget_remote_measure/readme/CONFIGURE.md +9 -0
- odoo/addons/web_widget_remote_measure/readme/CONTRIBUTORS.md +4 -0
- odoo/addons/web_widget_remote_measure/readme/{DESCRIPTION.rst → DESCRIPTION.md} +3 -3
- odoo/addons/web_widget_remote_measure/readme/USAGE.md +22 -0
- odoo/addons/web_widget_remote_measure/static/description/index.html +23 -18
- odoo/addons/web_widget_remote_measure/static/src/remote_measure_field/remote_measure_field.esm.js +428 -0
- odoo/addons/web_widget_remote_measure/static/src/{scss/remote_measure_widget.scss → remote_measure_field/remote_measure_field.scss} +3 -3
- odoo/addons/web_widget_remote_measure/static/src/remote_measure_field/remote_measure_field.xml +43 -0
- odoo/addons/web_widget_remote_measure/views/remote_measure_device_views.xml +9 -3
- {odoo_addon_web_widget_remote_measure-15.0.1.1.0.dist-info → odoo_addon_web_widget_remote_measure-17.0.1.0.0.4.dist-info}/METADATA +42 -37
- odoo_addon_web_widget_remote_measure-17.0.1.0.0.4.dist-info/RECORD +31 -0
- {odoo_addon_web_widget_remote_measure-15.0.1.1.0.dist-info → odoo_addon_web_widget_remote_measure-17.0.1.0.0.4.dist-info}/WHEEL +1 -1
- odoo_addon_web_widget_remote_measure-17.0.1.0.0.4.dist-info/top_level.txt +1 -0
- odoo/addons/web_widget_remote_measure/readme/CONFIGURE.rst +0 -8
- odoo/addons/web_widget_remote_measure/readme/CONTRIBUTORS.rst +0 -5
- odoo/addons/web_widget_remote_measure/readme/USAGE.rst +0 -19
- odoo/addons/web_widget_remote_measure/static/src/js/remote_measure_device_kanban_widget.esm.js +0 -33
- odoo/addons/web_widget_remote_measure/static/src/js/remote_measure_widget.esm.js +0 -461
- odoo/addons/web_widget_remote_measure/static/src/xml/measure_device_status.xml +0 -15
- odoo_addon_web_widget_remote_measure-15.0.1.1.0.dist-info/RECORD +0 -31
- odoo_addon_web_widget_remote_measure-15.0.1.1.0.dist-info/top_level.txt +0 -1
- /odoo/addons/web_widget_remote_measure/readme/{ROADMAP.rst → ROADMAP.md} +0 -0
@@ -7,7 +7,7 @@ Remote Measure Devices Input
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
8
8
|
!! changes will be overwritten. !!
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
10
|
-
!! source digest: sha256:
|
10
|
+
!! source digest: sha256:da3f687629ae8a2ddd5133d846c7ea58650065bd0de8a5c9f78430ab5f336940
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -17,20 +17,20 @@ Remote Measure Devices Input
|
|
17
17
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
18
18
|
:alt: License: AGPL-3
|
19
19
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--weighing-lightgray.png?logo=github
|
20
|
-
:target: https://github.com/OCA/stock-weighing/tree/
|
20
|
+
:target: https://github.com/OCA/stock-weighing/tree/17.0/web_widget_remote_measure
|
21
21
|
:alt: OCA/stock-weighing
|
22
22
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
23
|
-
:target: https://translation.odoo-community.org/projects/stock-weighing-
|
23
|
+
:target: https://translation.odoo-community.org/projects/stock-weighing-17-0/stock-weighing-17-0-web_widget_remote_measure
|
24
24
|
:alt: Translate me on Weblate
|
25
25
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
26
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-weighing&target_branch=
|
26
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-weighing&target_branch=17.0
|
27
27
|
:alt: Try me on Runboat
|
28
28
|
|
29
29
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
30
30
|
|
31
|
-
This module allows to input data from remote devices in your network.
|
32
|
-
websockets devices are supported, but it can be extended
|
33
|
-
Webservices.
|
31
|
+
This module allows to input data from remote devices in your network.
|
32
|
+
Currently, only websockets devices are supported, but it can be extended
|
33
|
+
for any protocol like Webservices.
|
34
34
|
|
35
35
|
Other modules can extend this one in order to use the widget.
|
36
36
|
|
@@ -44,35 +44,40 @@ Configuration
|
|
44
44
|
|
45
45
|
To configure your remote devices:
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
1. Go to *Settings > Technical > Devices > Remote devices*
|
48
|
+
2. Create a new one configuring the required info.
|
49
|
+
3. If the devices has an special port, set it up in the host data: e.g.:
|
50
|
+
10.1.1.2:3210
|
50
51
|
|
51
|
-
If you want to see the button in the top bar to set the user's remote
|
52
|
-
to have the "Show remote device button on navbar"
|
52
|
+
If you want to see the button in the top bar to set the user's remote
|
53
|
+
device, you need to have the "Show remote device button on navbar"
|
54
|
+
group.
|
53
55
|
|
54
56
|
Usage
|
55
57
|
=====
|
56
58
|
|
57
|
-
The remote device has to be in the users network so their web clients
|
59
|
+
The remote device has to be in the users network so their web clients
|
60
|
+
can reach them.
|
58
61
|
|
59
62
|
In order to test a device you can:
|
60
63
|
|
61
|
-
|
62
|
-
|
63
|
-
their card.
|
64
|
-
|
65
|
-
|
64
|
+
1. Go to *Settings > Technical > Devices > Remote devices*
|
65
|
+
2. In the Kanban view you'll wich devices can be reached as they'll have
|
66
|
+
a green dot in their card.
|
67
|
+
3. Go to one of those and click *Edit*.
|
68
|
+
4. You can start measuring from the remote device in the *Test measure*
|
69
|
+
field.
|
66
70
|
|
67
|
-
On the technical side, you can use the widget in your own
|
68
|
-
provide an uom field so records that aren't in that UoM
|
71
|
+
On the technical side, you can use the widget in your own Float\`.
|
72
|
+
You'll need to provide an uom field so records that aren't in that UoM
|
73
|
+
don't measure from the device.
|
69
74
|
|
70
75
|
.. code:: xml
|
71
76
|
|
72
|
-
|
77
|
+
<field name="float_field" widget="remote_measure" options="{'remote_device_field': 'measure_device_id', 'uom_field': 'uom_id'}" />
|
73
78
|
|
74
|
-
The users are able to change their default remote device by using the
|
75
|
-
balance icon set on the navbar.
|
79
|
+
The users are able to change their default remote device by using the
|
80
|
+
button with the balance icon set on the navbar.
|
76
81
|
|
77
82
|
Known issues / Roadmap
|
78
83
|
======================
|
@@ -94,7 +99,7 @@ Bug Tracker
|
|
94
99
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-weighing/issues>`_.
|
95
100
|
In case of trouble, please check there if your issue has already been reported.
|
96
101
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
97
|
-
`feedback <https://github.com/OCA/stock-weighing/issues/new?body=module:%20web_widget_remote_measure%0Aversion:%
|
102
|
+
`feedback <https://github.com/OCA/stock-weighing/issues/new?body=module:%20web_widget_remote_measure%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
98
103
|
|
99
104
|
Do not contact contributors directly about support or help with technical issues.
|
100
105
|
|
@@ -102,21 +107,21 @@ Credits
|
|
102
107
|
=======
|
103
108
|
|
104
109
|
Authors
|
105
|
-
|
110
|
+
-------
|
106
111
|
|
107
112
|
* Tecnativa
|
108
113
|
|
109
114
|
Contributors
|
110
|
-
|
115
|
+
------------
|
111
116
|
|
112
|
-
|
117
|
+
- `Tecnativa <https://www.tecnativa.com>`__:
|
113
118
|
|
114
|
-
|
115
|
-
|
116
|
-
|
119
|
+
- David Vidal
|
120
|
+
- Sergio Teruel
|
121
|
+
- Carlos Roca
|
117
122
|
|
118
123
|
Maintainers
|
119
|
-
|
124
|
+
-----------
|
120
125
|
|
121
126
|
This module is maintained by the OCA.
|
122
127
|
|
@@ -136,6 +141,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
|
136
141
|
|
137
142
|
|maintainer-chienandalu|
|
138
143
|
|
139
|
-
This module is part of the `OCA/stock-weighing <https://github.com/OCA/stock-weighing/tree/
|
144
|
+
This module is part of the `OCA/stock-weighing <https://github.com/OCA/stock-weighing/tree/17.0/web_widget_remote_measure>`_ project on GitHub.
|
140
145
|
|
141
146
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
{
|
4
4
|
"name": "Remote Measure Devices Input",
|
5
5
|
"summary": "Allows to connect to remote devices to record measures",
|
6
|
-
"version": "
|
6
|
+
"version": "17.0.1.0.0",
|
7
7
|
"author": "Tecnativa, Odoo Community Association (OCA)",
|
8
8
|
"website": "https://github.com/OCA/stock-weighing",
|
9
9
|
"maintainers": ["chienandalu"],
|
@@ -18,9 +18,7 @@
|
|
18
18
|
],
|
19
19
|
"assets": {
|
20
20
|
"web.assets_backend": [
|
21
|
-
"web_widget_remote_measure/static/src
|
22
|
-
"web_widget_remote_measure/static/src/**/*.scss",
|
21
|
+
"web_widget_remote_measure/static/src/remote_measure_field/**/*",
|
23
22
|
],
|
24
|
-
"web.assets_qweb": ["web_widget_remote_measure/static/src/**/*.xml"],
|
25
23
|
},
|
26
24
|
}
|
@@ -41,12 +41,6 @@ msgstr "Categoría"
|
|
41
41
|
msgid "Connection Mode"
|
42
42
|
msgstr "Modo de Conexión"
|
43
43
|
|
44
|
-
#. module: web_widget_remote_measure
|
45
|
-
#: code:addons/web_widget_remote_measure/models/remote_measure_device.py:0
|
46
|
-
#, python-format
|
47
|
-
msgid "Connection failure to %(host)s:%(port)s"
|
48
|
-
msgstr ""
|
49
|
-
|
50
44
|
#. module: web_widget_remote_measure
|
51
45
|
#: model:ir.model.fields,help:web_widget_remote_measure.field_remote_measure_device__uom_category_id
|
52
46
|
msgid ""
|
@@ -220,24 +214,11 @@ msgstr "Dispositivo de medición a distancia"
|
|
220
214
|
msgid "Scale F501"
|
221
215
|
msgstr "Escala F501"
|
222
216
|
|
223
|
-
#. module: web_widget_remote_measure
|
224
|
-
#: code:addons/web_widget_remote_measure/models/remote_measure_device.py:0
|
225
|
-
#, python-format
|
226
|
-
msgid "Successfully connected to %(host)s:%(port)s"
|
227
|
-
msgstr ""
|
228
|
-
|
229
217
|
#. module: web_widget_remote_measure
|
230
218
|
#: model:ir.model.fields,field_description:web_widget_remote_measure.field_remote_measure_device__test_measure
|
231
219
|
msgid "Test Measure"
|
232
220
|
msgstr "Medida de Prueba"
|
233
221
|
|
234
|
-
#. module: web_widget_remote_measure
|
235
|
-
#: code:addons/web_widget_remote_measure/models/remote_measure_device.py:0
|
236
|
-
#: model_terms:ir.ui.view,arch_db:web_widget_remote_measure.measure_device_form
|
237
|
-
#, python-format
|
238
|
-
msgid "Test connection"
|
239
|
-
msgstr ""
|
240
|
-
|
241
222
|
#. module: web_widget_remote_measure
|
242
223
|
#: model:ir.model.fields,field_description:web_widget_remote_measure.field_remote_measure_device__uom_id
|
243
224
|
msgid "Unit of measure"
|
@@ -4,7 +4,7 @@
|
|
4
4
|
#
|
5
5
|
msgid ""
|
6
6
|
msgstr ""
|
7
|
-
"Project-Id-Version: Odoo Server
|
7
|
+
"Project-Id-Version: Odoo Server 17.0\n"
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
9
9
|
"Last-Translator: \n"
|
10
10
|
"Language-Team: \n"
|
@@ -24,6 +24,13 @@ msgstr ""
|
|
24
24
|
msgid "Active"
|
25
25
|
msgstr ""
|
26
26
|
|
27
|
+
#. module: web_widget_remote_measure
|
28
|
+
#. odoo-javascript
|
29
|
+
#: code:addons/web_widget_remote_measure/static/src/remote_measure_field/remote_measure_field.esm.js:0
|
30
|
+
#, python-format
|
31
|
+
msgid "Additive Measure"
|
32
|
+
msgstr ""
|
33
|
+
|
27
34
|
#. module: web_widget_remote_measure
|
28
35
|
#: model_terms:ir.ui.view,arch_db:web_widget_remote_measure.measure_device_form
|
29
36
|
msgid "Archived"
|
@@ -50,6 +57,7 @@ msgid "Connection Mode"
|
|
50
57
|
msgstr ""
|
51
58
|
|
52
59
|
#. module: web_widget_remote_measure
|
60
|
+
#. odoo-python
|
53
61
|
#: code:addons/web_widget_remote_measure/models/remote_measure_device.py:0
|
54
62
|
#, python-format
|
55
63
|
msgid "Connection failure to %(host)s:%(port)s"
|
@@ -74,6 +82,7 @@ msgstr ""
|
|
74
82
|
|
75
83
|
#. module: web_widget_remote_measure
|
76
84
|
#: model:ir.model.fields,help:web_widget_remote_measure.field_res_users__remote_measure_device_id
|
85
|
+
#: model:ir.model.fields,help:web_widget_remote_measure.field_res_users_settings__remote_measure_device_id
|
77
86
|
msgid "Default remote measure device for this user"
|
78
87
|
msgstr ""
|
79
88
|
|
@@ -109,13 +118,6 @@ msgstr ""
|
|
109
118
|
msgid "Host"
|
110
119
|
msgstr ""
|
111
120
|
|
112
|
-
#. module: web_widget_remote_measure
|
113
|
-
#. openerp-web
|
114
|
-
#: code:addons/web_widget_remote_measure/static/src/xml/measure_device_status.xml:0
|
115
|
-
#, python-format
|
116
|
-
msgid "Host is up?"
|
117
|
-
msgstr ""
|
118
|
-
|
119
121
|
#. module: web_widget_remote_measure
|
120
122
|
#: model:ir.model.fields,help:web_widget_remote_measure.field_remote_measure_device__uom_factor
|
121
123
|
msgid ""
|
@@ -133,11 +135,6 @@ msgstr ""
|
|
133
135
|
msgid "Instant Read"
|
134
136
|
msgstr ""
|
135
137
|
|
136
|
-
#. module: web_widget_remote_measure
|
137
|
-
#: model:ir.model.fields,field_description:web_widget_remote_measure.field_remote_measure_device____last_update
|
138
|
-
msgid "Last Modified on"
|
139
|
-
msgstr ""
|
140
|
-
|
141
138
|
#. module: web_widget_remote_measure
|
142
139
|
#: model:ir.model.fields,field_description:web_widget_remote_measure.field_remote_measure_device__write_uid
|
143
140
|
msgid "Last Updated by"
|
@@ -201,15 +198,16 @@ msgid "Remote Devices"
|
|
201
198
|
msgstr ""
|
202
199
|
|
203
200
|
#. module: web_widget_remote_measure
|
204
|
-
|
205
|
-
#:
|
206
|
-
|
207
|
-
msgid "Remote Measure"
|
201
|
+
#: model:ir.model.fields,field_description:web_widget_remote_measure.field_res_users__remote_measure_device_id
|
202
|
+
#: model:ir.model.fields,field_description:web_widget_remote_measure.field_res_users_settings__remote_measure_device_id
|
203
|
+
msgid "Remote Measure Device"
|
208
204
|
msgstr ""
|
209
205
|
|
210
206
|
#. module: web_widget_remote_measure
|
211
|
-
|
212
|
-
|
207
|
+
#. odoo-javascript
|
208
|
+
#: code:addons/web_widget_remote_measure/static/src/remote_measure_field/remote_measure_field.esm.js:0
|
209
|
+
#, python-format
|
210
|
+
msgid "Remote device"
|
213
211
|
msgstr ""
|
214
212
|
|
215
213
|
#. module: web_widget_remote_measure
|
@@ -228,7 +226,7 @@ msgid "Select remote measure device"
|
|
228
226
|
msgstr ""
|
229
227
|
|
230
228
|
#. module: web_widget_remote_measure
|
231
|
-
#.
|
229
|
+
#. odoo-javascript
|
232
230
|
#: code:addons/web_widget_remote_measure/static/src/xml/systray_device_selector.xml:0
|
233
231
|
#: code:addons/web_widget_remote_measure/static/src/xml/systray_device_selector.xml:0
|
234
232
|
#, python-format
|
@@ -241,6 +239,7 @@ msgid "Show remote device button on navbar"
|
|
241
239
|
msgstr ""
|
242
240
|
|
243
241
|
#. module: web_widget_remote_measure
|
242
|
+
#. odoo-python
|
244
243
|
#: code:addons/web_widget_remote_measure/models/remote_measure_device.py:0
|
245
244
|
#, python-format
|
246
245
|
msgid "Successfully connected to %(host)s:%(port)s"
|
@@ -252,6 +251,7 @@ msgid "Test Measure"
|
|
252
251
|
msgstr ""
|
253
252
|
|
254
253
|
#. module: web_widget_remote_measure
|
254
|
+
#. odoo-python
|
255
255
|
#: code:addons/web_widget_remote_measure/models/remote_measure_device.py:0
|
256
256
|
#: model_terms:ir.ui.view,arch_db:web_widget_remote_measure.measure_device_form
|
257
257
|
#, python-format
|
@@ -263,9 +263,28 @@ msgstr ""
|
|
263
263
|
msgid "Unit of measure"
|
264
264
|
msgstr ""
|
265
265
|
|
266
|
+
#. module: web_widget_remote_measure
|
267
|
+
#. odoo-javascript
|
268
|
+
#: code:addons/web_widget_remote_measure/static/src/remote_measure_field/remote_measure_field.esm.js:0
|
269
|
+
#, python-format
|
270
|
+
msgid "UoM"
|
271
|
+
msgstr ""
|
272
|
+
|
273
|
+
#. module: web_widget_remote_measure
|
274
|
+
#. odoo-javascript
|
275
|
+
#: code:addons/web_widget_remote_measure/static/src/remote_measure_field/remote_measure_field.esm.js:0
|
276
|
+
#, python-format
|
277
|
+
msgid "Use default device"
|
278
|
+
msgstr ""
|
279
|
+
|
266
280
|
#. module: web_widget_remote_measure
|
267
281
|
#: model:ir.model,name:web_widget_remote_measure.model_res_users
|
268
|
-
msgid "
|
282
|
+
msgid "User"
|
283
|
+
msgstr ""
|
284
|
+
|
285
|
+
#. module: web_widget_remote_measure
|
286
|
+
#: model:ir.model,name:web_widget_remote_measure.model_res_users_settings
|
287
|
+
msgid "User Settings"
|
269
288
|
msgstr ""
|
270
289
|
|
271
290
|
#. module: web_widget_remote_measure
|
@@ -282,10 +301,3 @@ msgstr ""
|
|
282
301
|
#: model_terms:ir.ui.view,arch_db:web_widget_remote_measure.measure_device_form
|
283
302
|
msgid "e.g. Dock 1 Scale"
|
284
303
|
msgstr ""
|
285
|
-
|
286
|
-
#. module: web_widget_remote_measure
|
287
|
-
#. openerp-web
|
288
|
-
#: code:addons/web_widget_remote_measure/static/src/xml/measure_device_status.xml:0
|
289
|
-
#, python-format
|
290
|
-
msgid "{{widget.title}}"
|
291
|
-
msgstr ""
|
@@ -55,7 +55,7 @@ class RemoteMeasureDevice(models.Model):
|
|
55
55
|
try:
|
56
56
|
with closing(socket.create_connection((host, port), timeout)):
|
57
57
|
return self.test_connection_notification("success", host, port)
|
58
|
-
except (
|
58
|
+
except (OSError, socket.timeout):
|
59
59
|
return self.test_connection_notification("danger", host, port)
|
60
60
|
|
61
61
|
def test_connection_notification(self, notification_type, host, port):
|
@@ -0,0 +1,9 @@
|
|
1
|
+
To configure your remote devices:
|
2
|
+
|
3
|
+
1. Go to *Settings \> Technical \> Devices \> Remote devices*
|
4
|
+
2. Create a new one configuring the required info.
|
5
|
+
3. If the devices has an special port, set it up in the host data:
|
6
|
+
e.g.: 10.1.1.2:3210
|
7
|
+
|
8
|
+
If you want to see the button in the top bar to set the user's remote device, you need
|
9
|
+
to have the "Show remote device button on navbar" group.
|
@@ -1,5 +1,5 @@
|
|
1
|
-
This module allows to input data from remote devices in your network.
|
2
|
-
websockets devices are supported, but it can be extended
|
3
|
-
Webservices.
|
1
|
+
This module allows to input data from remote devices in your network.
|
2
|
+
Currently, only websockets devices are supported, but it can be extended
|
3
|
+
for any protocol like Webservices.
|
4
4
|
|
5
5
|
Other modules can extend this one in order to use the widget.
|
@@ -0,0 +1,22 @@
|
|
1
|
+
The remote device has to be in the users network so their web clients
|
2
|
+
can reach them.
|
3
|
+
|
4
|
+
In order to test a device you can:
|
5
|
+
|
6
|
+
1. Go to *Settings \> Technical \> Devices \> Remote devices*
|
7
|
+
2. In the Kanban view you'll wich devices can be reached as they'll
|
8
|
+
have a green dot in their card.
|
9
|
+
3. Go to one of those and click *Edit*.
|
10
|
+
4. You can start measuring from the remote device in the *Test measure*
|
11
|
+
field.
|
12
|
+
|
13
|
+
On the technical side, you can use the widget in your own Float\`.
|
14
|
+
You'll need to provide an uom field so records that aren't in that UoM
|
15
|
+
don't measure from the device.
|
16
|
+
|
17
|
+
``` xml
|
18
|
+
<field name="float_field" widget="remote_measure" options="{'remote_device_field': 'measure_device_id', 'uom_field': 'uom_id'}" />
|
19
|
+
```
|
20
|
+
|
21
|
+
The users are able to change their default remote device by using the button with the
|
22
|
+
balance icon set on the navbar.
|
@@ -367,12 +367,12 @@ ul.auto-toc {
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
368
368
|
!! changes will be overwritten. !!
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
370
|
+
!! source digest: sha256:da3f687629ae8a2ddd5133d846c7ea58650065bd0de8a5c9f78430ab5f336940
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
|
-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-weighing/tree/
|
373
|
-
<p>This module allows to input data from remote devices in your network.
|
374
|
-
websockets devices are supported, but it can be extended
|
375
|
-
Webservices.</p>
|
372
|
+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-weighing/tree/17.0/web_widget_remote_measure"><img alt="OCA/stock-weighing" src="https://img.shields.io/badge/github-OCA%2Fstock--weighing-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-weighing-17-0/stock-weighing-17-0-web_widget_remote_measure"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-weighing&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
373
|
+
<p>This module allows to input data from remote devices in your network.
|
374
|
+
Currently, only websockets devices are supported, but it can be extended
|
375
|
+
for any protocol like Webservices.</p>
|
376
376
|
<p>Other modules can extend this one in order to use the widget.</p>
|
377
377
|
<p><strong>Table of contents</strong></p>
|
378
378
|
<div class="contents local topic" id="contents">
|
@@ -395,29 +395,34 @@ Webservices.</p>
|
|
395
395
|
<ol class="arabic simple">
|
396
396
|
<li>Go to <em>Settings > Technical > Devices > Remote devices</em></li>
|
397
397
|
<li>Create a new one configuring the required info.</li>
|
398
|
-
<li>If the devices has an special port, set it up in the host data: e.g.:
|
398
|
+
<li>If the devices has an special port, set it up in the host data: e.g.:
|
399
|
+
10.1.1.2:3210</li>
|
399
400
|
</ol>
|
400
|
-
<p>If you want to see the button in the top bar to set the user’s remote
|
401
|
-
to have the “Show remote device button on navbar”
|
401
|
+
<p>If you want to see the button in the top bar to set the user’s remote
|
402
|
+
device, you need to have the “Show remote device button on navbar”
|
403
|
+
group.</p>
|
402
404
|
</div>
|
403
405
|
<div class="section" id="usage">
|
404
406
|
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
|
405
|
-
<p>The remote device has to be in the users network so their web clients
|
407
|
+
<p>The remote device has to be in the users network so their web clients
|
408
|
+
can reach them.</p>
|
406
409
|
<p>In order to test a device you can:</p>
|
407
410
|
<ol class="arabic simple">
|
408
411
|
<li>Go to <em>Settings > Technical > Devices > Remote devices</em></li>
|
409
|
-
<li>In the Kanban view you’ll wich devices can be reached as they’ll have
|
410
|
-
their card.</li>
|
412
|
+
<li>In the Kanban view you’ll wich devices can be reached as they’ll have
|
413
|
+
a green dot in their card.</li>
|
411
414
|
<li>Go to one of those and click <em>Edit</em>.</li>
|
412
|
-
<li>You can start measuring from the remote device in the <em>Test measure</em>
|
415
|
+
<li>You can start measuring from the remote device in the <em>Test measure</em>
|
416
|
+
field.</li>
|
413
417
|
</ol>
|
414
|
-
<p>On the technical side, you can use the widget in your own
|
415
|
-
provide an uom field so records that aren’t in that UoM
|
418
|
+
<p>On the technical side, you can use the widget in your own Float`.
|
419
|
+
You’ll need to provide an uom field so records that aren’t in that UoM
|
420
|
+
don’t measure from the device.</p>
|
416
421
|
<pre class="code xml literal-block">
|
417
422
|
<span class="nt"><field</span><span class="w"> </span><span class="na">name=</span><span class="s">"float_field"</span><span class="w"> </span><span class="na">widget=</span><span class="s">"remote_measure"</span><span class="w"> </span><span class="na">options=</span><span class="s">"{'remote_device_field': 'measure_device_id', 'uom_field': 'uom_id'}"</span><span class="w"> </span><span class="nt">/></span>
|
418
423
|
</pre>
|
419
|
-
<p>The users are able to change their default remote device by using the
|
420
|
-
balance icon set on the navbar.</p>
|
424
|
+
<p>The users are able to change their default remote device by using the
|
425
|
+
button with the balance icon set on the navbar.</p>
|
421
426
|
</div>
|
422
427
|
<div class="section" id="known-issues-roadmap">
|
423
428
|
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
|
@@ -438,7 +443,7 @@ balance icon set on the navbar.</p>
|
|
438
443
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-weighing/issues">GitHub Issues</a>.
|
439
444
|
In case of trouble, please check there if your issue has already been reported.
|
440
445
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
441
|
-
<a class="reference external" href="https://github.com/OCA/stock-weighing/issues/new?body=module:%20web_widget_remote_measure%0Aversion:%
|
446
|
+
<a class="reference external" href="https://github.com/OCA/stock-weighing/issues/new?body=module:%20web_widget_remote_measure%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
442
447
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
443
448
|
</div>
|
444
449
|
<div class="section" id="credits">
|
@@ -471,7 +476,7 @@ mission is to support the collaborative development of Odoo features and
|
|
471
476
|
promote its widespread use.</p>
|
472
477
|
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
473
478
|
<p><a class="reference external image-reference" href="https://github.com/chienandalu"><img alt="chienandalu" src="https://github.com/chienandalu.png?size=40px" /></a></p>
|
474
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-weighing/tree/
|
479
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-weighing/tree/17.0/web_widget_remote_measure">OCA/stock-weighing</a> project on GitHub.</p>
|
475
480
|
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
476
481
|
</div>
|
477
482
|
</div>
|