Skip to content
Permalink
Browse files

🚑 for communications between the build and the master you need to use…

… the base url
  • Loading branch information...
trojikman committed Jul 15, 2019
1 parent ad7f538 commit 43910034b1a36b06627e622dc3df8b8e5b6ea247
Showing with 2 additions and 2 deletions.
  1. +2 −2 saas/models/saas_operator.py
@@ -19,7 +19,7 @@ class SAASOperator(models.Model):
type = fields.Selection([
('local', 'Same Instance'),
], 'Type')
master_url = fields.Char(required=True, help='URL for server-to-server communication ')
master_url = fields.Char('Master URL (Server-to-Server)', required=True, help='URL for server-to-server communication ')
# host = fields.Char()
# port = fields.Char()
db_url_template = fields.Char('DB URLs', help='Avaialble variables: {db_id}, {db_name}')
@@ -73,7 +73,7 @@ def generate_db_name(self):

def _get_mandatory_args(self, db):
self.ensure_one()
master_url = self.master_url
master_url = self.env['ir.config_parameter'].get_param('web.base.url')
return {
'master_url': master_url,
'build_id': db.id

0 comments on commit 4391003

Please sign in to comment.
You can’t perform that action at this time.