-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
base: 16.0
Are you sure you want to change the base?
Conversation
Thanks @Thibagon tests are failing, can you have a look ? |
There was a problem hiding this 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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mising module
inherit_id="events_list" | |
inherit_id="website_event.events_list" |
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xpath does not exist...
<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> |
inherit_id="event_description_full" | ||
ud="website_event_online_ui_page_registration" |
There was a problem hiding this comment.
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
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" |
<h6 t-else=""> | ||
<i class="fa fa-map-marker" title="Location" /> | ||
Online event | ||
</h6> |
There was a problem hiding this comment.
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 :
<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> |
10c7127
to
d86dafc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working fine, thanks
Direct backport of this commit
This module is an UI improvement