mirror of
https://github.com/bringout/oca-mrp.git
synced 2026-04-24 22:12:04 +02:00
Initial commit: OCA Mrp packages (117 packages)
This commit is contained in:
commit
277e84fd7a
4403 changed files with 395154 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue