[IMP]GOLEM Activity Session Registration form for members : readonly when member is not yet created
This commit is contained in:
parent
c2d2b0481e
commit
fea7494efc
@ -26,7 +26,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<page name="other_page" position="before">
|
<page name="other_page" position="before">
|
||||||
<page name="sessions" string="Activities">
|
<page name="sessions" string="Activities">
|
||||||
|
<field name="id" invisible="1" />
|
||||||
<p>Default season activities</p>
|
<p>Default season activities</p>
|
||||||
|
<p attrs="{'invisible': [('id', '!=', False)]}" style="color:red;}">
|
||||||
|
Note that you can't register activities if the member is new and not yet saved into the database.
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<field name="has_draft_registrations" invisible="1" />
|
<field name="has_draft_registrations" invisible="1" />
|
||||||
<button name="do_validate_registrations" type="object"
|
<button name="do_validate_registrations" type="object"
|
||||||
@ -37,18 +41,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<!-- TODO : one by one cancelation -->
|
<!-- TODO : one by one cancelation -->
|
||||||
<!-- TODO : do not allow removal if confirmed -->
|
<!-- TODO : do not allow removal if confirmed -->
|
||||||
</p>
|
</p>
|
||||||
<field name="activity_session_registration_ids"
|
<group>
|
||||||
context="{'default_member_id': active_id}">
|
<field name="activity_session_registration_ids"
|
||||||
<tree editable="top"
|
attrs="{'readonly': [('id', '=', False)]}"
|
||||||
colors="red: state == 'canceled';darkgrey: state == 'draft';">
|
context="{'default_member_id': active_id}">
|
||||||
<field name="state" invisible="1" />
|
<tree editable="top"
|
||||||
<field name="session_id"
|
colors="red: state == 'canceled';darkgrey: state == 'draft';">
|
||||||
domain="[('is_current', '=', True)]" />
|
<field name="state" invisible="1" />
|
||||||
<field name="season_id" readonly="1" />
|
<field name="session_id"
|
||||||
<field name="member_id" readonly="1" />
|
domain="[('is_current', '=', True)]" />
|
||||||
<field name="invoice_id" readonly="1" />
|
<field name="season_id" readonly="1" />
|
||||||
</tree>
|
<field name="member_id" readonly="1" />
|
||||||
</field>
|
<field name="invoice_id" readonly="1" />
|
||||||
|
</tree>
|
||||||
|
</field>
|
||||||
|
</group>
|
||||||
</page>
|
</page>
|
||||||
</page>
|
</page>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user