Skip to content

Commit

Permalink
:tv;, Added 'empty-function'-button in template_view for refreshing page
Browse files Browse the repository at this point in the history
  • Loading branch information
fedoranvar committed Jul 31, 2019
1 parent 757c5ae commit 7a3ad54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions saas/models/saas_template.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2019 Denis Mudarisov <https://it-projects.info/team/trojikman>
# Copyright 2019 Kildebekov Anvar <https://it-projects.info/team/kildebekov>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import random
import string
Expand Down Expand Up @@ -80,6 +81,11 @@ def action_create_build(self):
else:
raise UserError(_('There are no ready template\'s deployments. Create new one or wait until it\'s done.'))

@api.multi
def refresh_page(self):
# Empty-function for purpose of refreshing page
pass


class SAASModules(models.Model):
_name = 'saas.module'
Expand Down
2 changes: 2 additions & 0 deletions saas/views/saas_template_views.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!--# Copyright 2019 Denis Mudarisov <https://www.it-projects.info/team/trojikman>
# Copyright 2019 Kildebekov Anvar <https://www.it-projects.info/team/kildebekov>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).-->

<odoo>
Expand Down Expand Up @@ -32,6 +33,7 @@
<field name="build_post_init" widget="ace" options="{'mode': 'python'}"/>
<field name="operator_ids"/>
</group>
<button name="refresh_page" type="object" string="Refresh" style="margin-left:15%"/>
</sheet>
</form>
</field>
Expand Down

0 comments on commit 7a3ad54

Please sign in to comment.