Skip to content

Commit

Permalink
[FIX] hw_posbox_homepage: Fix default server value in steps by steps …
Browse files Browse the repository at this point in the history
…wizard

in helpers 'get_odoo_server_url()' return the server string or False.
In steps by steps config wizard we display this value.
So in server input it display 'False' and with this value we can't submit the form

Now we set a empty string if the return is 'False'

closes odoo/odoo#48329

X-original-commit: 57283f2
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
  • Loading branch information
qle-odoo committed Mar 25, 2020
1 parent 077f580 commit 428d2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/hw_posbox_homepage/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def step_by_step_configure_page(self):
'breadcrumb': 'Configure IoT Box',
'loading_message': 'Configuring your IoT Box',
'ssid': helpers.get_wifi_essid(),
'server': helpers.get_odoo_server_url(),
'server': helpers.get_odoo_server_url() or '',
'hostname': subprocess.check_output('hostname').decode('utf-8').strip('\n'),
})

Expand Down

0 comments on commit 428d2dc

Please sign in to comment.