Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 929a8762d05981abc3f058a61e2910a1055a7416
  • 12.0-evo-202003 par défaut
  • 14-RV-20250324
  • 14-RV-20240830
  • 14-RV-20231222
  • 12-RV-Bug_ecrasement_date_radiation
  • 12-RV-revision-staff
  • 12-RV-copadev
  • 12-RV-Correctif-open-instagram
  • 12-RV-Tree-Coop-Ajout-effectif
  • 12.0-RV-Instagram
  • 12.0-RV-segment_visibility
  • 12.0 protégée
  • 12.0-RV-Abonnements
14 résultats

scop_contribution.py

Blame
  • Bifurcation depuis Le Filament / Confédération Générale des SCOP / cgscop_partner
    Le projet source a une visibilité limitée.
    scop_contribution.py 1,11 Kio
    # © 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 ScopContributions(models.Model):
        _name = "scop.contribution"
        _description = "Contributions"
    
        partner_id = fields.Many2one(
            comodel_name='res.partner',
            string='Organisme',
            domain=[('is_company', '=', True)],
            ondelete='restrict', index=True)
        type_id = fields.Many2one(
            'scop.contribution.type',
            string="Type de cotisation",
            ondelete='restrict', index=True)
        year = fields.Integer("Année de cotisation", index=True)
        calculation_basis = fields.Float("Assiette de calcul")
        rate = fields.Float("Taux appliqué")
        amount_to_pay = fields.Float("Montant à payer")
        amount_discount = fields.Float("Montant de remise")
        amount_paid = fields.Float("Montant réglé")
        amount_remaining = fields.Float("Montant restant")
    
    
    class ScopContributionType(models.Model):
        _name = "scop.contribution.type"
        _description = "Contribution type"
    
        name = fields.Char('Contribution type')