Skip to content

Commit

Permalink
Add stock_vertical_lift_server_env
Browse files Browse the repository at this point in the history
Compatibility layer between server_environment and stock_vertical_lift
  • Loading branch information
guewen committed Jul 13, 2020
1 parent f1c4afc commit c4064d4
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
product-attribute
server-env
server-ux
web
wms
6 changes: 6 additions & 0 deletions setup/stock_vertical_lift_server_env/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,
)
1 change: 1 addition & 0 deletions stock_vertical_lift_server_env/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions stock_vertical_lift_server_env/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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",
}
1 change: 1 addition & 0 deletions stock_vertical_lift_server_env/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import vertical_lift_shuttle
21 changes: 21 additions & 0 deletions stock_vertical_lift_server_env/models/vertical_lift_shuttle.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c4064d4

Please sign in to comment.