mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 23:52:02 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue