diff --git a/oca_dependencies.txt b/oca_dependencies.txt index e94747b1b19c..b468c811f54a 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1,4 +1,5 @@ product-attribute +server-env server-ux web wms diff --git a/setup/stock_vertical_lift_server_env/odoo/addons/stock_vertical_lift_server_env b/setup/stock_vertical_lift_server_env/odoo/addons/stock_vertical_lift_server_env new file mode 120000 index 000000000000..38d97a993452 --- /dev/null +++ b/setup/stock_vertical_lift_server_env/odoo/addons/stock_vertical_lift_server_env @@ -0,0 +1 @@ +../../../../stock_vertical_lift_server_env \ No newline at end of file diff --git a/setup/stock_vertical_lift_server_env/setup.py b/setup/stock_vertical_lift_server_env/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/stock_vertical_lift_server_env/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_vertical_lift_server_env/__init__.py b/stock_vertical_lift_server_env/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/stock_vertical_lift_server_env/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_vertical_lift_server_env/__manifest__.py b/stock_vertical_lift_server_env/__manifest__.py new file mode 100644 index 000000000000..70a7c8012f16 --- /dev/null +++ b/stock_vertical_lift_server_env/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2020 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Vertical Lift - Server Environment", + "summary": "Server Environment layer for Vertical Lift", + "version": "13.0.1.0.0", + "category": "Stock", + "author": "Camptocamp, Odoo Community Association (OCA)", + "license": "AGPL-3", + "depends": ["stock_vertical_lift", "server_environment"], # OCA/server-env + "website": "https://github.com/OCA/stock-logistics-warehouse", + "data": [], + "installable": True, + "auto_install": True, + "development_status": "Alpha", +} diff --git a/stock_vertical_lift_server_env/models/__init__.py b/stock_vertical_lift_server_env/models/__init__.py new file mode 100644 index 000000000000..e99db92f6582 --- /dev/null +++ b/stock_vertical_lift_server_env/models/__init__.py @@ -0,0 +1 @@ +from . import vertical_lift_shuttle diff --git a/stock_vertical_lift_server_env/models/vertical_lift_shuttle.py b/stock_vertical_lift_server_env/models/vertical_lift_shuttle.py new file mode 100644 index 000000000000..178f3b5093dd --- /dev/null +++ b/stock_vertical_lift_server_env/models/vertical_lift_shuttle.py @@ -0,0 +1,21 @@ +# Copyright 2020 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models + + +class VerticalLiftShuttle(models.Model): + _name = "vertical.lift.shuttle" + _inherit = ["vertical.lift.shuttle", "server.env.mixin"] + + @property + def _server_env_fields(self): + base_fields = super()._server_env_fields + sftp_fields = { + "hardware": {}, + "server": {}, + "port": {}, + "use_tls": {}, + } + sftp_fields.update(base_fields) + return sftp_fields