[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 Pedro M. Baeza
parent 66ea86aa8c
commit c031fde4d5
6 changed files with 46 additions and 2 deletions

View File

@@ -58,6 +58,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", size=40)
client_cert = fields.Text()