Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] website_event_online_ui module #391

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

Thibagon
Copy link

Direct backport of this commit

This module is an UI improvement

@remi-filament
Copy link

Thanks @Thibagon tests are failing, can you have a look ?
Also, please add [16.0] in front of your PR name so that we know it is for v16 !

@Thibagon Thibagon changed the title [ADD] website_event_online_ui module [16.0][ADD] website_event_online_ui module Jul 31, 2024
Copy link

@remi-filament remi-filament left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Thibagon your module do not install because of a number of issues !
See suggestions made.

<record id="website_event_online_ui_search_inherit" model="ir.ui.view">
<field name="name">event.website_event_oneline_ui.search</field>
<field name="model">event.event</field>
<field name="inherit_id">event.view_event_search</field>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<field name="inherit_id">event.view_event_search</field>
<field name="inherit_id" ref="event.view_event_search" />

domain="[('address_id', '=', False)]"
/>
</xpath>
<xpath expr="//group[@string='Group_by']" position="inside">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<xpath expr="//group[@string='Group_by']" position="inside">
<xpath expr="//group" position="inside">

Using string is not allowed in xpath.



<template
inherit_id="events_list"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mising module

Suggested change
inherit_id="events_list"
inherit_id="website_event.events_list"

Comment on lines 11 to 19
<xpath expr="//main/small[@itemprop='location']" position="after">
<div class="d-flex align-items-center">
<i class="fa fa-map-marker me-2" title="Location" />
<small
t-if="event.address_id"
class="o_not_editable fw-bold"
itemprop="location"
t-out="event.address_id"
t-options="{'widget': 'contact', 'fields': ['city'], 'no_marker': 'true'}"
/>
<small t-else="" class="o_not_editable fw-bold" itemprop="location">
Online event
</small>
</div>
</xpath>
<xpath expr="//main/small[@itemprop='location']" position="attributes">
<attributes name="invisible">1</attributes>
</xpath>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xpath does not exist...

Suggested change
<xpath expr="//main/small[@itemprop='location']" position="after">
<div class="d-flex align-items-center">
<i class="fa fa-map-marker me-2" title="Location" />
<small
t-if="event.address_id"
class="o_not_editable fw-bold"
itemprop="location"
t-out="event.address_id"
t-options="{'widget': 'contact', 'fields': ['city'], 'no_marker': 'true'}"
/>
<small t-else="" class="o_not_editable fw-bold" itemprop="location">
Online event
</small>
</div>
</xpath>
<xpath expr="//main/small[@itemprop='location']" position="attributes">
<attributes name="invisible">1</attributes>
</xpath>
<xpath expr="//main/div[@itemprop='location']" position="attributes">
<attribute name="t-if">event.address_id</attribute>
</xpath>
<xpath expr="//main/div[@itemprop='location']" position="after">
<div
t-else=""
class="o_not_editable fw-bold"
itemprop="location"
>Online event</div>
</xpath>

Comment on lines 4 to 5
inherit_id="event_description_full"
ud="website_event_online_ui_page_registration"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing module and incorrect property ud

Suggested change
inherit_id="event_description_full"
ud="website_event_online_ui_page_registration"
inherit_id="website_event.event_description_full"
id="website_event_online_ui_page_registration"

Comment on lines 9 to 12
<h6 t-else="">
<i class="fa fa-map-marker" title="Location" />
Online event
</h6>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reuse look and feel from address :

Suggested change
<h6 t-else="">
<i class="fa fa-map-marker" title="Location" />
Online event
</h6>
<div t-else="" class="o_wevent_sidebar_block">
<h6 class="o_wevent_sidebar_title">Location</h6>
<h4 itemprop="location">
<i class="fa fa-map-marker" title="Location" />
Online event
</h4>
</div>

Copy link

@remi-filament remi-filament left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working fine, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants