File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
connector_importer/models Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def debug_mode(self):
8383 os .environ .get ('IMPORTER_DEBUG_MODE' )
8484
8585 @api .multi
86- @job
86+ @job ( default_channel = 'root.import' )
8787 def import_record (self , component_name , model_name ):
8888 """This job will import a record."""
8989 with self .backend_id .work_on (self ._name ) as work :
Original file line number Diff line number Diff line change 22# Copyright 2018 Camptocamp SA
33# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
44
5- import json
65import base64
76import os
87from collections import OrderedDict
@@ -240,7 +239,7 @@ def available_models(self):
240239 return self .import_type_id .available_models ()
241240
242241 @api .multi
243- @job
242+ @job ( default_channel = 'root.import' )
244243 def import_recordset (self ):
245244 """This job will import a recordset."""
246245 with self .backend_id .work_on (self ._name ) as work :
Original file line number Diff line number Diff line change 77import csv
88import io
99import time
10+ import base64
1011
1112
1213class ReporterMixin (models .AbstractModel ):
You can’t perform that action at this time.
0 commit comments