Add stock_vertical_lift_server_env

Compatibility layer between server_environment and stock_vertical_lift
This commit is contained in:
Guewen Baconnier
2020-07-13 10:01:56 +02:00
committed by nguyenhk
parent 3b408103bf
commit 7d1c1f20d2
6 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import models

View File

@@ -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",
}

View File

@@ -0,0 +1 @@
from . import vertical_lift_shuttle

View File

@@ -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

View File

@@ -0,0 +1 @@
* Guewen Baconnier <guewen.baconnier@camptocamp.com>

View File

@@ -0,0 +1 @@
Adds OCA Server Environment features to Stock Vertical Lift.