forked from Yaltik/golem
[IMP]Activity registration : add base price, not invoice on default tree
This commit is contained in:
parent
7dfb07b48c
commit
415fcbf64c
@ -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?',
|
||||
|
@ -37,6 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
domain="[('is_current', '=', True)]" />
|
||||
<field name="season_id" readonly="1" />
|
||||
<field name="member_id" readonly="1" invisible="1" />
|
||||
<field name="activity_price" string="Base price" />
|
||||
</tree>
|
||||
</field>
|
||||
<field name="activity_registration_all_ids" readonly="1">
|
||||
|
Loading…
Reference in New Issue
Block a user