first commit

This commit is contained in:
Ruslan Grak
2025-01-07 10:00:02 +03:00
commit 626d8d3c56
349 changed files with 44175 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# Copyright 2016 Cédric Pigeon
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import queue_job
from . import res_users

View File

@@ -0,0 +1,13 @@
# Copyright 2016 Cédric Pigeon
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class QueueJob(models.Model):
_inherit = "queue.job"
def _subscribe_users_domain(self):
domain = super()._subscribe_users_domain()
domain.append(("subscribe_job", "=", True))
return domain

View File

@@ -0,0 +1,18 @@
# Copyright 2016 Cédric Pigeon
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResUsers(models.Model):
_inherit = "res.users"
subscribe_job = fields.Boolean(
"Job Notifications",
default=True,
help="If this flag is checked and the "
"user is Connector Manager, he will "
"receive job notifications.",
index=True,
)