mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Fix default value with server environment
This commit is contained in:
@@ -12,10 +12,13 @@ class VerticalLiftShuttle(models.Model):
|
||||
def _server_env_fields(self):
|
||||
base_fields = super()._server_env_fields
|
||||
sftp_fields = {
|
||||
"hardware": {},
|
||||
"hardware": {"compute_default": "_compute_default_hardware"},
|
||||
"server": {},
|
||||
"port": {},
|
||||
"use_tls": {},
|
||||
}
|
||||
sftp_fields.update(base_fields)
|
||||
return sftp_fields
|
||||
|
||||
def _compute_default_hardware(self):
|
||||
self.hardware = "simulation"
|
||||
|
||||
Reference in New Issue
Block a user