Browse Source

don : ajout frequence du don 0:20

master
root 3 years ago
parent
commit
ca00a0ba1c
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      models/donation.py
  2. +1
    -1
      views/donation.xml

+ 4
- 4
models/donation.py View File

@ -50,10 +50,10 @@ class DonationDonation(models.Model):
# index=True,
# track_visibility='onchange'
# )
# frequency_direct_debit =fields.Selection(
# [('monthly','Monthly'), ('bimonthly','Bimonthly'),('quarterly','Quarterly'),('half-yearly','Half-yearly'),('annually','Annually')],
# default='monthly'
# )
frequency =fields.Selection(
[('monthly','Monthly'), ('bimonthly','Bimonthly'),('quarterly','Quarterly'),('half-yearly','Half-yearly'),('annually','Annually')],
default='monthly'
)
# sepa_status_direct_debit=fields.Selection(
# [('done','Done'),('rejected','Rejected')]


+ 1
- 1
views/donation.xml View File

@ -11,7 +11,7 @@
<field name="operation_id" options="{'no_open': True, 'no_create': True}" can_create="true" can_write="true"/>
<field name="segment_id" options="{'no_open': True, 'no_create': True}" can_create="true" can_write="true"/>
<field name="frequency" attrs="{'invisible':[('recurring_template','!=','active')]}"/>
</xpath>
</field>


Loading…
Cancel
Save