Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 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,
)