Sélectionner une révision Git
Bifurcation depuis
Le Filament / Opération Auto-Consommation Collective / oacc_perimeter_api
Le projet source a une visibilité limitée.
scop_legal_event.py 828 o
# © 2019 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models, fields
class ScopLegalEvent(models.Model):
_name = "scop.legal.event"
_description = "Legal event"
partner_id = fields.Many2one(
comodel_name='res.partner',
string='Organisme',
domain=[('is_company', '=', True)],
ondelete='restrict', index=True)
date = fields.Date("Date de l’évènement", index=True)
type_id = fields.Many2one(
'scop.legal.event.type',
string="Type d'évènement",
ondelete='restrict', index=True)
note = fields.Text("Commentaire")
class EventType(models.Model):
_name = "scop.legal.event.type"
_description = "Legal Event type"
name = fields.Char('Event type')