forked from Yaltik/golem
[FIX]GOLEM Payment fixes
* Allow direct creation of schedule days ; * Cascade delete for days and schedules.
This commit is contained in:
parent
2ce0ddfc8c
commit
970fa991b5
@ -19,7 +19,7 @@
|
||||
'name': 'GOLEM Activity Member Registration Payments',
|
||||
'summary': 'GOLEM Activities Member Registration Payments',
|
||||
'description': 'GOLEM Activities Member Registration Payments',
|
||||
'version': '10.0.0.3.5',
|
||||
'version': '10.0.0.3.6',
|
||||
'category': 'GOLEM',
|
||||
'author': 'Fabien Bourgeois',
|
||||
'license': 'AGPL-3',
|
||||
|
@ -37,7 +37,7 @@ class GolemPaymentScheduleDay(models.Model):
|
||||
|
||||
day = fields.Date(required=True)
|
||||
schedule_id = fields.Many2one('golem.payment.schedule', required=True,
|
||||
auto_join=True)
|
||||
auto_join=True, ondelete='cascade')
|
||||
|
||||
|
||||
class GolemPaymentSchedule(models.Model):
|
||||
|
@ -30,10 +30,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<group>
|
||||
<field name="name" />
|
||||
<field name="season_id" options="{'no_open': True, 'no_create': True}" />
|
||||
<field name="day_ids">
|
||||
<field name="day_ids" context="{'default_schedule_id': active_id}">
|
||||
<tree editable="bottom">
|
||||
<field name="day" />
|
||||
<field name="schedule_id" invisible="1" />
|
||||
<field name="schedule_id" invisible="1" required="0" />
|
||||
</tree>
|
||||
</field>
|
||||
<field name="occurences" />
|
||||
|
Loading…
Reference in New Issue
Block a user