Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 7ad5d716f3da2980cf966bbe3489c7c81ee5b989
  • 14.0 par défaut
  • 13.0
  • 12.0 protégée
4 résultats

ur_financial_system.py

Blame
  • ur_financial_system.py 452 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 ScopTimesheetCode(models.Model):
        _name = "ur.financial.system"
        _description = "Dispositif financier UR"
    
        name = fields.Char('Nom')
        company_id = fields.Many2one(
            comodel_name='res.company',
            string='UR',
            default=lambda self: self.env.user.company_id)