[IMP] base_external_dbsource: Add company field to backend

fw-port from b7f439e04a
This commit is contained in:
sergio.teruel
2018-09-07 11:35:46 +02:00
committed by Ángel Rivas
parent b387f08f39
commit d7afa87c33
4 changed files with 26 additions and 1 deletions

View File

@@ -57,6 +57,11 @@ class BaseExternalDbsource(models.Model):
- Elasticsearch: https://user:%s@localhost:9200
""",
)
company_id = fields.Many2one(
comodel_name="res.company",
string="Company",
default=lambda self: self.env.user.company_id,
)
conn_string_full = fields.Text(readonly=True, compute="_compute_conn_string_full")
password = fields.Char("Password")
client_cert = fields.Text()