|
@ -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): |
|
|