Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • f0b213c3efa8abe3138a28e839c1b14987b05993
  • 12.0 par défaut protégée
  • 17.0
  • 18.0
  • 16.0
  • 14.0
  • 15.0
  • 13.0
  • 10.0
  • 9.0
10 résultats

lefilament_tdb.py

Blame
  • 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')