Skip to content

Commit

Permalink
[ADD] web_widget_remote_measure_utilcell: New module
Browse files Browse the repository at this point in the history
Adds web_widget_remote_measure support for Utilcell

TT42173
  • Loading branch information
chienandalu committed Jun 24, 2024
1 parent 8d07d0f commit 66256bf
Show file tree
Hide file tree
Showing 19 changed files with 731 additions and 1 deletion.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

exclude: |
(?x)
# NOT INSTALLABLE ADDONS
Expand Down
2 changes: 2 additions & 0 deletions setup/.setuptools-odoo-make-default-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# addons listed in this file are ignored by
# setuptools-odoo-make-default (one addon per line)
2 changes: 2 additions & 0 deletions setup/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
To learn more about this directory, please visit
https://pypi.python.org/pypi/setuptools-odoo
6 changes: 6 additions & 0 deletions setup/web_widget_remote_measure_utilcell/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
98 changes: 98 additions & 0 deletions web_widget_remote_measure_utilcell/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
======================
Remote UTILCELL scales
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1e5ab9f54b3d5d30c436a892afdde76675209648acbff29c12706e7905c74a76
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--weighing-lightgray.png?logo=github
:target: https://github.com/OCA/stock-weighing/tree/15.0/web_widget_remote_measure_utilcell
:alt: OCA/stock-weighing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-weighing-15-0/stock-weighing-15-0-web_widget_remote_measure_utilcell
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-weighing&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Utilcell scale protocols to be used with a remote measure device.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this remote device, just go the remote measure device
configurtion form and set the desired protocol.

Known issues / Roadmap
======================

- There are more Utilcell protocols that we're not covering right now,
but they could be added easily, just check the scale technical docs.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-weighing/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-weighing/issues/new?body=module:%20web_widget_remote_measure_utilcell%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- David Vidal

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-chienandalu| image:: https://github.com/chienandalu.png?size=40px
:target: https://github.com/chienandalu
:alt: chienandalu

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-chienandalu|

This module is part of the `OCA/stock-weighing <https://github.com/OCA/stock-weighing/tree/15.0/web_widget_remote_measure_utilcell>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions web_widget_remote_measure_utilcell/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions web_widget_remote_measure_utilcell/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2024 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Remote UTILCELL scales",
"summary": "Compatibility with UTILCELL propietary protocols",
"version": "15.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-weighing",
"maintainers": ["chienandalu"],
"license": "AGPL-3",
"category": "Stock",
"depends": ["web_widget_remote_measure"],
"data": [],
"assets": {
"web.assets_backend": [
"web_widget_remote_measure_utilcell/static/src/js/*.js",
],
},
}
Binary file not shown.
34 changes: 34 additions & 0 deletions web_widget_remote_measure_utilcell/i18n/es.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_remote_measure_utilcell
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: web_widget_remote_measure_utilcell
#: model:ir.model.fields,help:web_widget_remote_measure_utilcell.field_remote_measure_device__protocol
msgid "Operating protocol"
msgstr "Protocolo operativo"

#. module: web_widget_remote_measure_utilcell
#: model:ir.model.fields,field_description:web_widget_remote_measure_utilcell.field_remote_measure_device__protocol
msgid "Protocol"
msgstr "Protocolo"

#. module: web_widget_remote_measure_utilcell
#: model:ir.model,name:web_widget_remote_measure_utilcell.model_remote_measure_device
msgid "Remote measure device"
msgstr "Dispositivo de medición remoto"

#. module: web_widget_remote_measure_utilcell
#: model:ir.model.fields.selection,name:web_widget_remote_measure_utilcell.selection__remote_measure_device__protocol__utilcell_f16
msgid "Utilcell F16"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_widget_remote_measure_utilcell
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: web_widget_remote_measure_utilcell
#: model:ir.model.fields,help:web_widget_remote_measure_utilcell.field_remote_measure_device__protocol
msgid "Operating protocol"
msgstr ""

#. module: web_widget_remote_measure_utilcell
#: model:ir.model.fields,field_description:web_widget_remote_measure_utilcell.field_remote_measure_device__protocol
msgid "Protocol"
msgstr ""

#. module: web_widget_remote_measure_utilcell
#: model:ir.model,name:web_widget_remote_measure_utilcell.model_remote_measure_device
msgid "Remote measure device"
msgstr ""

#. module: web_widget_remote_measure_utilcell
#: model:ir.model.fields.selection,name:web_widget_remote_measure_utilcell.selection__remote_measure_device__protocol__utilcell_f16
msgid "Utilcell F16"
msgstr ""
1 change: 1 addition & 0 deletions web_widget_remote_measure_utilcell/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import remote_measure_device
15 changes: 15 additions & 0 deletions web_widget_remote_measure_utilcell/models/remote_measure_device.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models


class RemoteMeasureDevice(models.Model):
_inherit = "remote.measure.device"

protocol = fields.Selection(
selection_add=[
("utilcell_f10", "Utilcell F10"),
("utilcell_f16", "Utilcell F16"),
],
ondelete={"utilcell_f10": "cascade", "utilcell_f16": "cascade"},
)
2 changes: 2 additions & 0 deletions web_widget_remote_measure_utilcell/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
To configure this remote device, just go the remote measure device configurtion form
and set the desired protocol.
2 changes: 2 additions & 0 deletions web_widget_remote_measure_utilcell/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Tecnativa](https://www.tecnativa.com):
- David Vidal
1 change: 1 addition & 0 deletions web_widget_remote_measure_utilcell/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Utilcell scale protocols to be used with a remote measure device.
2 changes: 2 additions & 0 deletions web_widget_remote_measure_utilcell/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- There are more Utilcell protocols that we're not covering right now, but they could
be added easily, just check the scale technical docs.
Loading

0 comments on commit 66256bf

Please sign in to comment.