We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ed43d commit 938161bCopy full SHA for 938161b
2 files changed
bus_record_events/models/__init__.py
@@ -1,2 +1,3 @@
1
from . import bus_event_mixin
2
from . import ir_websocket
3
+from . import bus_bus
bus_record_events/models/bus_bus.py
@@ -0,0 +1,13 @@
+from odoo import models
+from odoo.tools import index_exists
+
4
5
+class BusBus(models.Model):
6
+ _inherit = "bus.bus"
7
8
+ def init(self):
9
+ index_1 = "idx_bus_bus_channel_id"
10
+ if not index_exists(self._cr, index_1):
11
+ self._cr.execute(
12
+ "CREATE INDEX idx_bus_bus_channel_id " "ON bus_bus (channel, id);"
13
+ )
0 commit comments