Commit Graph
205 Commits
Author SHA1 Message Date
Pedro M. Baeza 1bf483b047 [FIX] website_event_track: Properly sort tracks on website with P3
On Python 3, dict.keys() doesn't return a list, so we can't sort it, but
converting to a list on the fly before calling to sort() is not going to
change the original dict_keys object. Storing directly the list in the
variable, we get the expected result.

Side note: the daylist2 variable is there just for the t-set and was
already present in the code. Renaming it to dummy would be clearer
but that should not be done in stable.

Closes #25113.
2018-06-11 12:03:38 +02:00
Christophe Simonis c6b2fa47ed Revert "[FIX] base: bad back-port"
This reverts commit 0ac6043ec7.
2018-01-25 12:43:02 +01:00
Christophe Simonis da9baf2331 [MERGE] forward port branch saas-15 up to 0c97be858c 2018-01-25 11:14:56 +01:00
Christophe Simonis 0c97be858c [MERGE] forward port branch saas-14 up to 4ea4f99df9 2018-01-24 18:12:53 +01:00
Christophe Simonis 21c2f519a2 [MERGE] forward port branch 10.0 up to c0fa5228d8 2018-01-24 13:24:02 +01:00
Nicolas Lempereur 7a63d471ed [FIX] website_event_track: use event timezone
Depending on the location, on the website different timezone were used
to display tracks:

- in `Agenda` day date (as of saas-14): the current user timezone
- in `Agenda` track times: the event timezone
- in `Talks` subtitle: the event timezone
- in `Talks` tracks: the current user timezone
- in a track page: the first user (admin) timezone

With this change in all those instance the event timezone is used.

There is still a usability hindrance in the backend: the timezone used
when encoding track or event datetime is the browser timezone.

So if the browser is GMT+2 and the event is GMT+6, encoding a 4h00 time
would save it as 2h00 (in UTC) and display it on the website as 8h00.

This would make sense to encode these datetime in user timezone but
currently there is no framework option to do it.

opw-805358
closes #22427
2018-01-22 12:38:52 +01:00
Christophe Simonis 8f1e2044cd [MERGE] forward port branch saas-16 up to 810b6aa760 2017-10-31 16:29:07 +01:00
Christophe Simonis 810b6aa760 [MERGE] forward port branch saas-15 up to d1fcca1504 2017-10-31 15:25:01 +01:00
Christophe Simonis d1fcca1504 [MERGE] forward port branch saas-14 up to a0157f104f 2017-10-31 12:36:47 +01:00
Christophe Simonis a0157f104f [MERGE] forward port branch 10.0 up to dcce040a63 2017-10-31 12:07:15 +01:00
Jeremy Kersten dc4f3df405 [FIX] website_event: allow to drop snippet on static event page
This commit is related to opw-771825
2017-10-27 11:28:43 +02:00
Jeremy Kersten 45085d3685 [FIX] website_event_track: fix internal error on page agenda
P3 'dict_keys' object has no attribute 'sort'

Thid commit closes odoo/odoo#19989
2017-10-10 11:01:32 +02:00
Christophe Simonis 99bf9e4563 [MERGE] forward port branch saas-16 up to 89df681b45 2017-09-28 13:24:14 +02:00
Christophe Simonis 89df681b45 [MERGE] forward port branch saas-15 up to da15615c45 2017-09-28 11:56:23 +02:00
Christophe Simonis da15615c45 [MERGE] forward port branch saas-14 up to aca401c500 2017-09-28 10:53:37 +02:00
Christophe Simonis af117236de [MERGE] forward port branch 10.0 up to 8165018058 2017-09-27 17:07:23 +02:00
Christophe Simonis 6836828a3e [MERGE] forward port branch 9.0 up to 1970761554 2017-09-27 13:20:29 +02:00
qsm-odoo 0b4f190b0f [FIX] website_event_track: allow to edit tracks' info in frontend
Before this commit, the track description and partner biography were
not able to be edited after proposal.
2017-09-25 11:55:17 +02:00
rde 4ecbacaf59 [ADD] website: add new page management
website.page = old ir.ui.view with page=True
website.redirect is a new mechanism to replace in the futur the ir.attachment
mechanism of redirect.

From now, we don't have a specific /page controller to serve 'page'.

We use a new model website.page which is rendered if none route matches the url
 and that the field 'url' on website.page matches the request.httprequest.path.

The order to serve a path is:
    - Routes defines in controllers (/shop, /blog, ...)
    - ir.attachment with name matching the path
    - website.page with url matching the path
    - website.redirect with url_from matching the path
    - 404

To improve:
    - allow regexp in website.redirect model
    - allow to edit the view_arch from the page.management via redirect backend
      (needed when traceback in the page, or when modifying a js/css/less/...)
2017-09-15 15:29:37 +02:00
stefanorigano fafbc5ebe9 [REF] *: use new kanban record classes/layout 2017-09-15 14:34:18 +02:00
Kirti Choudhary 36a2bfb9cf [IMP] *: add and improve kanban views for mobile
This commit improves readability in kanban views.
The default view in mobile is kanban and many of them
needed to be improved.

task-33438
closes 17853
2017-09-05 13:21:58 +02:00
stefanorigano 8f315b1838 [REF] *: replace dropdown icons in kanban layouts
* crm, event, hr_contract, hr_recruitment, maintenance, mass_mailing,
  note, survey, web, website_event_track, website_forum_doc

Adapt kanban layouts so that the dropdown icon is now a vertical
ellipsis instead of a hamburger.
2017-08-28 12:53:17 +02:00
stefanorigano 66ffabf706 [REF] *: move tags under the title of kanban records
* crm, fleet, hr_recruitment, mass_mailing, website_event_track

Adapt kanban layouts so that tags are under the title to fit new design
requirements.
2017-08-28 12:53:17 +02:00
Xavier Morel cbffd99341 [IMP] use hasclass() xpath function 2017-08-11 10:44:40 +02:00
Xavier Morel 9bd793e1b5 [FIX] P3: / has become 'real division' in all cases 2017-07-18 11:49:28 +02:00
Christophe Simonis bf51fe55a1 [MERGE] forward port branch saas-16 up to 0f2b2c4e2b 2017-07-07 14:30:30 +02:00
Martin Geubelle 5241d479b2 [FIX] *: add color option on m2m_tags widgets in kanban
There is a bit of magic in the kanban with many2many: the widget many2many_tags
is automatically set on many2many fields.

Since the previous commit, the `color_field` needs to be explicitly stated
in the options for the tags to be colored.

In kanban views where tags were previously colored, we thus have specified the
widget and the color option.
2017-07-07 13:40:50 +02:00
Martin Geubelle a29f7f671b [FIX] *: explicit color_field attribute for m2m_tags
Since the previous commit, the `color_field` needs to be explicitly stated
in the options for the tags to be colored.

The previous behaviour (always read the field `color`) was leading to server
warnings if the field was not present on the comodel.

Thìs commit set the `color_field´ for every many2many_tags on fields that have
a `color` field on the comodel.
2017-07-07 13:40:50 +02:00
Fabien Pinckaers 34da40a44d [IMP] acitvity filters cleaning 2017-07-05 23:32:23 +02:00
pgu-odoo 1142d66ecb [IMP] various: add 'Upcoming Activities' filter on various models using activities 2017-07-05 14:17:34 +02:00
fka-odoo 792b3a8737 [IMP] kanban: Hide Configuration->Stage menuitems in debug mode
Purpose
=======

As you can easily edit your stages via your kanban view, this menu item is not necessary

Specification
=============

Following configuration/stages menu Move to debug mode

List of menu:

Quality/Configuration/Quality Alert Stages
PLM/Configuration/ECO Stages
Events/Configuration/Track Stages
Project/Configuration/Stages
Maintenance/Configuration/Maintenance Stages
Recruitment/Configuration/Stages
Email Marketing/Configuration/Campaign Stages
2017-05-22 14:11:49 +02:00
Kishan Gajjar d2cddd66fb [IMP] hr_*,lunch: Add kanban views for all menuitems used in mobile
Purpose
=======

Improve readability on mobile

Specification
=============

Activate Kanban view on those so it could be displayed by default on mobile instead of view list

List of impacted modules:

- hr_holidays: kanban for leaves summary

- hr_holidays: kanban for allocation request(reuse  leaves summary)

- hr_holidays: kanban for leave details(reuse leaves summary)

- hr_attendance: kanban for attendances

- hr_timesheet: kanban for activities

- hr_contract: kanban for contracts

- hr_recruitment: kanban for Stages

- hr_recruitment: kanban for Job Positions(reuse Job Positions dashboard)

- lunch : kanban for previous order

- lunch : kanban for employee payment

- lunch : kanban for control accounts reuse kanban of employee payment

- lunch : kanban for control vendors reuse previous order

- lunch : kanban for product

- lunch : kanban for alerts

- lunch : kanban for today's orders(reuse previous order)

- website_event_track: kanban for track stages
2017-05-11 11:38:42 +02:00
Thibault Delavallée 2090986b06 [IMP] event: update attendee and track after creating a partner from chatter suggestion
When a message is posted through the chatter and creates a new partner
the attendee or track is now updated so that the partner field is correctly
set to the newly-created partner.

Chatter on attendee or track now uses the reload option so that the view is
reloaded after posting a message. The user therefore sees that the record
has been updated accordingly.
2017-05-04 14:15:34 +02:00
Aaron Bohy 5d6412116b [FIX] mrp,website_event_track: handle widget in form
This widget is supposed to be used in list views only (it allows
to re-order the rows by drag-and-dropping them).

Since the new views, the field widgets are shared between all
views, whereas before, each view had its own list of widgets
(and the handle widget was a list view widget).

So if one specifies widget='handle' in a form view, the handle
widget will now be instantiated, whereas before it was ignored.

This rev. fixes two templates making use of the handle widget in
form views.
2017-05-03 20:48:25 +02:00
David Monjoie 5401c15dd7 [FIX] website_event_track: fix state_selection widgets in views
Also add a deprecated fallback for similar widget calls in partner
code.
2017-04-21 13:25:36 +02:00
Christophe Simonis e92ae40d71 [MERGE] forward port branch saas-15 up to b0992d082d 2017-04-14 13:32:15 +02:00
Christophe Matthieu 09731b7860 [IMP] calendar change view grammar.
* Remove filter tag
* Use color attribute on the view who add a filter/legend
* Filter is automatically added when 'avatar_field' option is used on a
field tag, and the default template display the avatar.
* Can overwrite the template (add tag template who contains qweb with
<t t-name="calendar-box">...</t>
2017-04-11 19:44:38 +02:00
Géry Debongnie 905e01921f [REF] web, *: redesign all JS views
This commit introduce a full redesign of all JS views.  We started
basically from scratch.  The goal was to unify all the various views
under a common framework, to make them testable, to make then usable in
different conditions (in studio, or in the frontend), and to make our
lives easier.

Some important points are:
- we introduced new coding guidelines (camelCase, 80 chars width, ...)
- we have a brand new testing framework (still QUnit based)
- kanban view moved to the web addon
- calendar view (formerly web_calender) moved to web as well
- the tree view was removed
- all new code should be documented

We hope that this code is the start of a new era for the Odoo web
client, we want to have a high quality codebase, well documented, well
tested, well designed.

Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2017-04-11 19:44:38 +02:00
Thibault Delavallée 414bfa132b [IMP] website_event_track: add kanban status on track form view
This way users can directly see current kanban state of their track
pipeline without having to go back to the kanban view.
2017-04-04 14:11:31 +02:00
Thibault Delavallée 4384033aaa [FIX] website_event_track: fix display of track author name 2017-04-04 14:11:27 +02:00
Thibault Delavallée b2f805176b [FIX] website_event(_track): fix behavior of website choices in event and category
Choosing not to use a dedicated menu for an event or an event category
also unchecks all menu sub-options, aka track and track proposal.
2017-04-04 14:11:27 +02:00
Thibault Delavallée 91617bfc78 [IMP] event: ease event configuration and management through categories
This commit improve event.type (Event Categories) model and views in order
to ease event configuration through more detailed categories. The purpose
is to be able to define categories holding default data for website,
tickets, attendee mailing, ... Choosing a category on a new event takes
those default values to help users creating finely-tuned events.

Main configuration on event.type is

 * auto confirmation, replacing the old system-wide auto confirmation
   parameter
 * seats limitation
 * location: online events, timezone
 * communication: reply-to email address, twitter hashtag, automated
   mailing of attendees
 * ticketing
 * website parameters: display on website, display tracks, allow track
   proposal
 * question to attendees
2017-03-03 13:09:53 +01:00
Mitali Patel 5d4dd98af2 [IMP] website_event: apply checkout / buy process improvements
* reword various texts in website_event to avoid references to a sell
   or checkout process as website_event does not handle sakes;
 * if there is only one ticket available, propose to take one by default.
   Display Register Now instead of Order Now if tickets are free. Display
   an error if the user chooses no tickets in its registration.;
 * link in cart for event tickets redirects to event, not product;
 * confirm attendees only at invoice payment;
 * improve wording, use schedule instead of agenda.
2017-03-03 13:09:17 +01:00
Mitali Patel 531d641375 [IMP] event_track: make tracks easier to use
Purpose of this commit is to clean and ease the use of tracks in
event management.

 * status is change to stages. Those are global for all event as we
   consider track acceptation process as similar across events;
 * change speakers many2many to a one2many. Most event have only one
   speaker or at least a main speaker;
 * add various chatter features: tracking of template, subtypes,
   suggested recipients, ... Also add activities on tracks and their
   various filters;
 * add automatic mailing on stages like already done in tasks or
   issues;
 * tweak display of tracks on agenda. Event manager see unpublished
   tracks with the right label in order to know the status of the various
   event tracks.
2017-03-03 13:08:09 +01:00
Mitali Patel ddd4479d10 [IMP] event: apply various usability improvements
* reporting: remove report.event.registration as it can be replaced by
   pivot and graph views on event.registration model directly. The
   custom SQL view does not add any valuable information;
 * event: correctly take limitations from event category and check
   minimum seats is lesser or equal to maximum seats;
 * event: reorganize a bit the form view

  * avoid some kind of random ordering of buttons;
  * move seats availability directly in the form view;
  * ticket page is now used only for ticketing purpose, not a mismatch
    with seats;

 * registration: attendees can be set as done only for confirmed events
   to avoid confusion when working with draft events;

Misc usability

 * event.type: rename event type to event category to have a unified
   term across various event addons;
 * event: stop tracking active field as it does not add interesting
   information; it should not toggle everyday;
 * event: track location as it does add valuable information;
 * event: rename some labels to ease user experience;
 * event.mail: add missing description and rec name;
2017-03-03 13:04:36 +01:00
Mitali Patel 66d8567a25 [LINT] event_*: apply small linting and guidelines
No functional change is implied by this commit. Some code is moved and
some files are renamed.
2017-03-03 13:04:36 +01:00
Vipul Bhatt 7cf554af54 [IMP] website_event_track: display event time in website language format 2016-11-03 09:25:30 +01:00
Kinjal Mehta b87e6e02a8 [IMP] general: Place (Un)Archive button as last button by default
PURPOSE
=======

Usability Issue of  "Archived" button. People tend to click on it accidentally

+ Also rename `Unarchive` into `Restore`
2016-10-21 09:34:13 +02:00
Christophe Simonis f670b3b1df [MERGE] forward port branch saas-11 up to 3aea814 2016-07-29 15:33:51 +02:00
Christophe Simonis 529f88dbd3 [MERGE] forward port branch saas-10 up to 4ca04fd 2016-07-29 13:01:29 +02:00