[11.0][IMPO] base_external_dbsource: Add company field to backend

This commit is contained in:
sergio.teruel
2018-09-07 11:35:46 +02:00
committed by Sergio Teruel
parent e53d461500
commit b7f439e04a
4 changed files with 20 additions and 1 deletions

View File

@@ -57,6 +57,11 @@ class BaseExternalDbsource(models.Model):
- SQLite: sqlite:///test.db
- 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',