File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def _compute_active_triggers(self):
103103 r .active_automation_ids = r .with_context (active_test = True ).automation_ids
104104 r .active_webhook_ids = r .with_context (active_test = True ).webhook_ids
105105
106- def action_magic_button (self ):
106+ def _magic_button (self ):
107107 # TODO: This should be refactored, because we use single button per task
108108 if not self .button_ids :
109109 self .button_ids .create (
@@ -113,7 +113,11 @@ def action_magic_button(self):
113113 "sync_task_id" : self .id ,
114114 }
115115 )
116- return self .button_ids .start_button ()
116+
117+ return self .button_ids
118+
119+ def action_magic_button (self ):
120+ return self ._magic_button ().start_button ()
117121
118122 def _get_current_date_formatted (self ):
119123 user_lang = self .env .user .lang or "en_US"
You can’t perform that action at this time.
0 commit comments