Browse Source

Merge PR #412 into 12.0

Signed-off-by pedrobaeza
12.0
OCA-git-bot 4 years ago
parent
commit
e1a83df428
  1. 2
      bi_sql_editor/models/bi_sql_view.py

2
bi_sql_editor/models/bi_sql_view.py

@ -264,6 +264,7 @@ class BiSQLView(models.Model):
sql_view.cron_id = self.env['ir.cron'].create( sql_view.cron_id = self.env['ir.cron'].create(
sql_view._prepare_cron()).id sql_view._prepare_cron()).id
sql_view.state = 'model_valid' sql_view.state = 'model_valid'
return True
@api.multi @api.multi
def button_set_draft(self): def button_set_draft(self):
@ -302,6 +303,7 @@ class BiSQLView(models.Model):
self.menu_id = self.env['ir.ui.menu'].create( self.menu_id = self.env['ir.ui.menu'].create(
self._prepare_menu()).id self._prepare_menu()).id
self.write({'state': 'ui_valid'}) self.write({'state': 'ui_valid'})
return True
@api.multi @api.multi
def button_update_model_access(self): def button_update_model_access(self):

Loading…
Cancel
Save