diff --git a/wizard/scop_bordereau_refund_wizard.py b/wizard/scop_bordereau_refund_wizard.py index ffaf5d0c9d3251d18028dc76b1a9c4a51d0a944e..53614d19218f20135ec17c2e5150aeb6b42ed92e 100644 --- a/wizard/scop_bordereau_refund_wizard.py +++ b/wizard/scop_bordereau_refund_wizard.py @@ -17,6 +17,7 @@ class ScopBordereauRefundWizard(models.TransientModel): date_refund = fields.Date( string="Date de régularisation", default=fields.Date.today(), required=1) + cotiz_reminder = fields.Html('Rappel des cotisations', readonly=1) amount_refund = fields.Float('Montant (par trimestre)', required=1) comment = fields.Char('Motif de l\'avoir', required=1) type_cotiz = fields.Selection( @@ -52,6 +53,7 @@ class ScopBordereauRefundWizard(models.TransientModel): ) res.update({ 'bordereau_id': bordereau_id.id, + 'cotiz_reminder': bordereau_id.details, }) return res diff --git a/wizard/scop_bordereau_refund_wizard.xml b/wizard/scop_bordereau_refund_wizard.xml index faac159b56a86c4e6a0b10094b66ccf3cf9c7d87..e42f5c0268bb3f78a2a2faeb20aead211ea6b5c8 100644 --- a/wizard/scop_bordereau_refund_wizard.xml +++ b/wizard/scop_bordereau_refund_wizard.xml @@ -11,6 +11,8 @@ <form string="Générer un avoir"> <sheet> <group> + <field name="cotiz_reminder"/> + <hr/> <field name="type_cotiz"/> <field name="date_refund"/> <separator/>