Initial commit: OCA Mrp packages (117 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:05 +02:00
commit 277e84fd7a
4403 changed files with 395154 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import event_event
from . import event_type

View file

@ -0,0 +1,23 @@
# Copyright 2016 OpenSynergy Indonesia
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class EventEvent(models.Model):
_inherit = "event.event"
contact_ids = fields.Many2many(
string="Contacts",
comodel_name="res.partner",
help="Partners available to attend attendees requests for this event.",
compute="_compute_contact_ids",
store=True,
readonly=False,
)
@api.depends("event_type_id")
def _compute_contact_ids(self):
for one in self:
one.contact_ids |= one.event_type_id.contact_ids

View file

@ -0,0 +1,16 @@
# Copyright 2016 OpenSynergy Indonesia
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class EventType(models.Model):
_inherit = "event.type"
contact_ids = fields.Many2many(
string="Contacts",
comodel_name="res.partner",
help="Partners available to attend attendees requests by default for "
"events of this type.",
)