[IMP]GOLEM Registration from Activity Session Form
This commit is contained in:
parent
2359854ba8
commit
f29c78aa71
@ -84,7 +84,3 @@ class GolemActivitySessionRegistration(models.Model):
|
|||||||
""" Compute default season """
|
""" Compute default season """
|
||||||
domain = [('is_default', '=', True)]
|
domain = [('is_default', '=', True)]
|
||||||
self.season_default_id = self.env['golem.season'].search(domain).id
|
self.season_default_id = self.env['golem.season'].search(domain).id
|
||||||
# if 'default_season_id' not in self.env.context:
|
|
||||||
# ctx = self.env.context.copy()
|
|
||||||
# ctx.update({'default_season_id': self._default_season()})
|
|
||||||
# self.with_context(ctx)
|
|
||||||
|
@ -31,7 +31,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<page string="Members">
|
<page string="Members">
|
||||||
<group>
|
<group>
|
||||||
<field name="places_remain" readonly="True" />
|
<field name="places_remain" readonly="True" />
|
||||||
<field name="activity_session_registration_ids" />
|
<field name="activity_session_registration_ids"
|
||||||
|
context="{'default_session_id': active_id}">
|
||||||
|
<tree editable="top">
|
||||||
|
<field name="season_default_id" invisible="1" />
|
||||||
|
<field name="member_id"
|
||||||
|
domain="[('season_ids', '=', season_default_id)]" />
|
||||||
|
<field name="session_id" readonly="1" />
|
||||||
|
<field name="season_id" readonly="1" />
|
||||||
|
<field name="invoice_id" readonly="1" />
|
||||||
|
</tree>
|
||||||
|
</field>
|
||||||
</group>
|
</group>
|
||||||
</page>
|
</page>
|
||||||
</page>
|
</page>
|
||||||
|
Loading…
Reference in New Issue
Block a user