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

[11.0][MIG] website_event_filter_selector #112

Merged
merged 5 commits into from
Jun 7, 2018
Merged

[11.0][MIG] website_event_filter_selector #112

merged 5 commits into from
Jun 7, 2018

Conversation

tarteo
Copy link
Member

@tarteo tarteo commented May 30, 2018

No description provided.

yajo and others added 4 commits May 30, 2018 16:00
You can use selectors above the event list in the website, instead of the left column that there is right now.

Store user customizations in separate template.

Acknowledge that you cannot hide only the date filter.

Remove search button; search on selection change.

Fix bug where date did not match what was being filtered.

[FIX][8.0][website_event_filter_selector] Do not die without types or countries

This basically fixes #44 and a similar bug detected that would happen when no countries were found.

It just adds a `t-if` to avoid possible failures, [borrowing the idea from core `website_event` module](https://github.com/odoo/odoo/blob/8.0/addons/website_event/views/website_event.xml#L167).

[8.0][IMP][website_event_filter_selector] Add city filter for events.

Since this includes new logic, it adds also a template for left-column filters.

With this patch, you can now filter events depending on their cities, not only on their countries.

This also includes some modifications that will make filters occupy always a full bootstrap row, no matter if there are 1, 2, 3 or 4 filters, to avoid ugly layouts.
[IMP] website_event_filter_selector: Spanish translation

[IMP] website_event_filter_selector: German translation

[FIX] website_event_filter_selector: Fix date selection

[FIX] website_event_filter_selector: Fix city count

[FIX] website_event_filter_selector: Don't lose context with new obj
Relicensed to LGPL, new JS API.

Add test. Fix errors found with it.

Go 100% coverage. Support online events.

[FIX][website_event_filter_selector] Fix Travis build

Builds failed on 2017-03-31 because the tour was expecting to see USA event starting in this month, but next day was another month.

Well, in short, this fix makes the tour work on any day.
Includes update to use new tours api.

Patch event counts when a city is searched.
@pedrobaeza pedrobaeza added this to the 11.0 milestone May 30, 2018
@pedrobaeza
Copy link
Member

Can you please check runbot status and maybe use new README fragments approach?

@pedrobaeza pedrobaeza mentioned this pull request May 30, 2018
15 tasks
@tarteo
Copy link
Member Author

tarteo commented May 30, 2018

@pedrobaeza Runbot seems to be working fine, I don't understand. Ah yes, I'll check the new template for the fragmented approach!

@pedrobaeza
Copy link
Member

There are 2 warnings in runbot:

2018-05-30 14:10:27,180 166 WARNING openerp_test odoo.addons.base.ir.ir_ui_view: Error-prone use of @class in view City breadcrumb (): use the hasclass(*classes) function to filter elements by their classes
2018-05-30 14:10:27,381 166 WARNING openerp_test odoo.addons.base.ir.ir_ui_view: Error-prone use of @class in view City breadcrumb (website_event_filter_selector.city_breadcrumb): use the hasclass(*classes) function to filter elements by their classes

@pedrobaeza pedrobaeza requested a review from yajo May 31, 2018 08:12
Copy link
Member

@yajo yajo left a comment

Choose a reason for hiding this comment

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

Code is ✔️

Functional test reveals that the usage of variable selection_filters_amount in partial views is not working as expected. All filters should be in the same row, as in previous versions, but they occupy 1 row each:

captura de pantalla de 2018-06-04 11-56-53

Maybe there's a better way to do that with Less directly. Keep in mind this addon came from v8, where there was no core Less support.

@tarteo
Copy link
Member Author

tarteo commented Jun 6, 2018

@yajo Didn't know it. But I took a look and apparently it produced classes like col-sm-3.0 instead of col-sm-3. 😄

image

@yajo
Copy link
Member

yajo commented Jun 7, 2018

Ah ok, it must be something new from P3. Could you please squash migration commits to merge? Thanks.

[IMP] Use new README approach

[IMP] Removed the use of @Class

[FIX] Column classes
@tarteo
Copy link
Member Author

tarteo commented Jun 7, 2018

@yajo Squashed the mig commits

@yajo yajo merged commit 017c0df into OCA:11.0 Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants