[ADD] base modules

This commit is contained in:
Muhammad
2024-04-07 12:43:39 +05:00
parent 311598a929
commit fa3d921e2d
276 changed files with 51186 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,
)