Skip to content

Commit 1009b9e

Browse files
committed
fix: force model param when printing report
1 parent 504aaf9 commit 1009b9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oorq/tasks.py

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ def report(conf_attrs, dbname, uid, obj, ids, datas=None, context=None):
164164
conn = sql_db.db_connect(dbname)
165165
cursor = conn.cursor()
166166
obj = netsvc.LocalService('report.'+obj)
167+
if 'model' not in datas:
168+
datas['model'] = obj._service.table
167169
result, format = obj.create(cursor, uid, ids, datas, context)
168170
job.meta['format'] = format
169171
job.save()

0 commit comments

Comments
 (0)