Skip to content
Permalink
Browse files

📺 Added 'empty-function'-button in template_view for refreshing page

  • Loading branch information...
fedoranvar committed Jul 31, 2019
1 parent 757c5ae commit 68bad7f8a3aaa1f65128b681c2f774bcafecc6e3
Showing with 8 additions and 0 deletions.
  1. +6 −0 saas/models/saas_template.py
  2. +2 −0 saas/views/saas_template_views.xml
@@ -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
@@ -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'
@@ -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>
@@ -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>

0 comments on commit 68bad7f

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