From 415fcbf64c8ad359e50492f91bb3a22e6fc36c26 Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Wed, 14 Jun 2017 22:36:38 +0200 Subject: [PATCH] [IMP]Activity registration : add base price, not invoice on default tree --- .../models/golem_activity_registration.py | 1 + golem_activity_registration/views/golem_member_views.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/golem_activity_registration/models/golem_activity_registration.py b/golem_activity_registration/models/golem_activity_registration.py index a221407..2819ad1 100644 --- a/golem_activity_registration/models/golem_activity_registration.py +++ b/golem_activity_registration/models/golem_activity_registration.py @@ -79,6 +79,7 @@ class GolemActivityRegistration(models.Model): ondelete='cascade', index=True) activity_id = fields.Many2one('golem.activity', required=True, index=True, string='Activity', ondelete='cascade') + activity_price = fields.Float(related='activity_id.list_price') season_id = fields.Many2one(string='Season', related='activity_id.season_id', store=True) is_current = fields.Boolean('Current season?', diff --git a/golem_activity_registration/views/golem_member_views.xml b/golem_activity_registration/views/golem_member_views.xml index f3b489d..043be08 100644 --- a/golem_activity_registration/views/golem_member_views.xml +++ b/golem_activity_registration/views/golem_member_views.xml @@ -37,6 +37,7 @@ along with this program. If not, see . domain="[('is_current', '=', True)]" /> +