Skip to content

Commit effeb8a

Browse files
author
Reanova Migration
committed
[FIX] base_import_async + queue_job_cron: V19 compat
- bump version 18.0.1.0.0 -> 19.0.1.0.0 (base_import_async) - bump version 18.0.1.1.1 -> 19.0.1.1.1 (queue_job_cron) - installable False -> True (les deux modules desormais compatibles V19) - retirer @api.returns("ir.attachment") sur _create_csv_attachment (decorateur supprime en V19, signature retourne deja ir.attachment) Patch local Reanova migration V12->V19 - a formaliser en PR OCA.
1 parent ebb87ea commit effeb8a

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

base_import_async/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Asynchronous Import",
77
"summary": "Import CSV files in the background",
8-
"version": "18.0.1.0.0",
8+
"version": "19.0.1.0.0",
99
"author": "Akretion, ACSONE SA/NV, Odoo Community Association (OCA)",
1010
"license": "AGPL-3",
1111
"website": "https://github.com/OCA/queue",
@@ -20,6 +20,6 @@
2020
"base_import_async/static/src/xml/import_data_sidepanel.xml",
2121
],
2222
},
23-
"installable": False,
23+
"installable": True,
2424
"development_status": "Production/Stable",
2525
}

base_import_async/models/base_import_import.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def _link_attachment_to_job(self, delayed_job, attachment):
7878
)
7979
attachment.write({"res_model": "queue.job", "res_id": queue_job.id})
8080

81-
@api.returns("ir.attachment")
8281
def _create_csv_attachment(self, fields, data, options, file_name):
8382
# write csv
8483
f = StringIO()

queue_job_cron/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
{
55
"name": "Scheduled Actions as Queue Jobs",
6-
"version": "18.0.1.1.1",
6+
"version": "19.0.1.1.1",
77
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
88
"website": "https://github.com/OCA/queue",
99
"license": "AGPL-3",
1010
"category": "Generic Modules",
1111
"depends": ["queue_job"],
1212
"data": ["data/data.xml", "views/ir_cron_view.xml"],
13-
"installable": False,
13+
"installable": True,
1414
}

0 commit comments

Comments
 (0)