From 0f4b688ac61d53495764c13f261bab52f3fe8917 Mon Sep 17 00:00:00 2001 From: Adam Heinz Date: Sun, 22 Jan 2023 09:21:59 -0500 Subject: [PATCH] [MIG] queue_job_batch, test_queue_job_batch: Migration to 15.0 --- queue_job_batch/__manifest__.py | 9 +++++++-- queue_job_batch/models/queue_job_batch.py | 2 +- queue_job_batch/views/assets_backend.xml | 16 ---------------- queue_job_batch/views/queue_job_batch_views.xml | 2 +- test_queue_job_batch/__manifest__.py | 2 +- 5 files changed, 10 insertions(+), 21 deletions(-) delete mode 100644 queue_job_batch/views/assets_backend.xml diff --git a/queue_job_batch/__manifest__.py b/queue_job_batch/__manifest__.py index f5b907a6c3..6e31b8928a 100644 --- a/queue_job_batch/__manifest__.py +++ b/queue_job_batch/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Job Queue Batch", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "author": "Creu Blanca,Odoo Community Association (OCA)", "website": "https://github.com/OCA/queue", "license": "AGPL-3", @@ -26,6 +26,11 @@ # views "views/queue_job_views.xml", "views/queue_job_batch_views.xml", - "views/assets_backend.xml", ], + "assets": { + "web.assets_backend": [ + "queue_job_batch/static/src/js/systray.js", + "queue_job_batch/static/src/scss/systray.scss", + ], + }, } diff --git a/queue_job_batch/models/queue_job_batch.py b/queue_job_batch/models/queue_job_batch.py index 09e925838c..afb030d5ab 100644 --- a/queue_job_batch/models/queue_job_batch.py +++ b/queue_job_batch/models/queue_job_batch.py @@ -88,7 +88,7 @@ def set_read(self): notifications = [] channel = "queue.job.batch" notifications.append([channel, {}]) - self.env["bus.bus"].sendmany(notifications) + self.env["bus.bus"]._sendmany(notifications) return res @api.model diff --git a/queue_job_batch/views/assets_backend.xml b/queue_job_batch/views/assets_backend.xml deleted file mode 100644 index c635d4bc2c..0000000000 --- a/queue_job_batch/views/assets_backend.xml +++ /dev/null @@ -1,16 +0,0 @@ - - -