Skip to content

Commit

Permalink
Merge PR OCA#317 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jun 16, 2023
2 parents 34fa626 + ba4e28a commit 4e1d03d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion event_session/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class EventEvent(models.Model):
string=" # No of Confirmed Registrations",
store=True,
)
generate_sessions_button_visible = fields.Boolean(related="stage_id.pipe_end")
generate_sessions_button_hide = fields.Boolean(related="stage_id.pipe_end")

@api.depends("session_ids")
def _compute_sessions_count(self):
Expand Down
4 changes: 2 additions & 2 deletions event_session/wizards/wizard_event_session_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<field name="inherit_id" ref="event.view_event_form" />
<field name="arch" type="xml">
<field name="stage_id" position="before">
<field name="generate_sessions_button_visible" invisible="1" />
<field name="generate_sessions_button_hide" invisible="1" />
<button
string="Generate Sessions"
name="%(act_wizard_event_session)d"
type="action"
attrs="{'invisible': [('generate_sessions_button_visible', '=', False)]}"
attrs="{'invisible': [('generate_sessions_button_hide', '=', True)]}"
/>
</field>
</field>
Expand Down

0 comments on commit 4e1d03d

Please sign in to comment.