Commit Graph

55 Commits

Author SHA1 Message Date
Nicolas Lempereur 73d5f62acd [IMP] web_calendar: refresh event after fail
If an event is moved at another time, its appearance would only be
refreshed if it was successful. But in this particular instance, the
refresh may even be more useful when the change failed.

part of #9837

second half of:
opw-657863
2015-12-10 17:01:49 +01:00
Xavier ALT 2f35c40714 [FIX] web_calendar: date/datetime fields format in calendar views
As everywhere else, dates & datetimes must be formatted according
to the format defined in the `res.lang` of the user, and within
the timezone of the user.

Before this revision, when adding a datetime field to a calendar view,
the raw value of the date was displayed, for instance:
`2015-01-01 10:00:00`
instead of
`01/01/2015 11:00:00`
for a user in English(US), in UTC +1.

fixes #5324
opw-653625
2015-11-04 12:47:28 +01:00
Denis Ledoux 91417516ae [FIX] web_calendar: use of selection fields as color filters
Using a selection field as color filters in a calendar view
had as effect to display the second letter of the state name
(The state name string, index 1)
as filter, instead of the full state name.

Besides, the colors of the filters did not match.

e.g., Sales > Sales > Sales Orders > Calendar View

opw-646486
2015-08-05 14:25:45 +02:00
Olivier Dony e3bd2a5914 [FIX] web_calendar, website: avoid rendering errors with special characters 2015-07-01 17:58:28 +02:00
Nicolas Lempereur 27834a6e9b [FIX] web_calendar: keep default name if event name empty
The name of an event is the name a created record will get.

If the event name of a new event is left empty, the edited record will
also be empty which could be less user friendly.

closes #6896
fixes #6869
opw-640921
2015-05-29 13:18:09 +02:00
Randhir Mayatra 23dc795ff2 [FIX] web_calendar: Selection fields used as color attributes of calendar view
JKE:
 + refactoring
 + auto select previous checkbox
2015-02-02 17:13:39 +01:00
jkei 76f6203888 Avoid false values in calendar views
'false' is displayed when no value is assigne to a field declared in a calend.

Impacted versions:

8.0, master
Steps to reproduce:

Create a fresh database, create a new customer and set his fiscal position.
Create a quotation, select the customer
Current behavior:

File "/Users/keje/src/odoo/addons/account/partner.py", line 107, in get_fiscal_position
return part.property_account_position.id
NameError: global name 'part' is not defined

Expected behavior:

No error
2014-12-22 13:16:26 +01:00
Jeremy Kersten 8251806741 [FIX] web_calendar: improve the commit 787147d. This commit was fixing bug in other module that calendar which was open an event in popup view. Because browse/read by default was unable to read string id. The fix was too restrictif, because calendar need to read/browse string; we cannot cast this id in Int else we loose the virtual part. parseInt('12-20140512') -> 12. 2014-11-21 14:07:09 +01:00
Christophe Simonis 8e637bac92 [MERGE] forward port of branch saas-3 up to 21b1203 2014-10-29 19:33:02 +01:00
Jeremy Kersten 787147d52b [FIX] web_calendar: cast the id into int. When you open a form view in a popup via the attr 'event_open_popup', in some cases the id is a string and so the popup is empty... FIX #545 PR #551 2014-10-29 17:43:44 +01:00
Christophe Simonis e2e60bf4eb [MERGE] forward port of branch saas-3 up to fe8106f 2014-09-26 12:53:59 +02:00
Denis Ledoux 9106d61ae8 [MERGE] forward port of branch 7.0 up to 5c2fb12 2014-09-24 13:10:47 +02:00
Denis Ledoux a4ab44ac96 [FIX] web_calendar: calendar title and column according to l10n 2014-09-09 13:33:55 +02:00
Christophe Simonis 5dff035878 [MERGE] forward port of branch saas-5 up to 39bee35 2014-08-20 20:33:17 +02:00
Christophe Simonis c3131317d7 [MERGE] forward port of branch saas-4 up to ddef2dd 2014-08-20 17:57:22 +02:00
Christophe Simonis ddef2dd10a [MERGE] forward port of branch saas-3 up to 8f13e83 2014-08-20 17:51:20 +02:00
Mohammed Shekha 9207748a71 [FIX] Fixed the issue of calendar view reload events inconsistency, when the slow create popup creates event through any form button which is kind of object, action or workflow at that time events are reloaded but still button action is not called like workflow is not triggered and hence state of the event is still not changed and due to domain newly created event is filtered, note that events are refetched when create_completed is triggered and create_completed is triggered right after creation of record, but there are case where some form button changes state of the record and it requires to refetched for example we have scenario in mrp order planning where Confirm Production creates event but before workflow is triggered and state of the event is changed, events are reloaded and newly created event will not returned because of domain. 2014-08-14 16:21:20 +02:00
Martin Trigaux ec01e0789b [FIX] web_calendar: Revert d9e6a7a as was fixed differently at rev e220136
Fixing calendar view errors, opw 609989
2014-07-11 13:58:26 +02:00
Christophe Simonis 1f57528bc6 [MERGE] forward port of branch saas-5 up to 8dfd5ea 2014-06-27 16:14:40 +02:00
Christophe Simonis 8dfd5eab01 [MERGE] forward port of branch saas-4 up to a4bc65c 2014-06-27 16:08:09 +02:00
Martin Trigaux 8725858b7d Revert "[FIX] calendar: do not parse date to date"
The parse_value has been fixed and is required to make sure we have a timezone assigned in the date
2014-06-27 10:49:07 +02:00
Christophe Simonis 1eaa69d342 [MERGE] forward port of branch saas-5 up to 9e8e365 2014-06-25 12:44:13 +02:00
Christophe Simonis 9e8e3653f2 [MERGE] forward port of branch saas-4 up to f68c835 2014-06-25 12:43:41 +02:00
Christophe Simonis f68c83545a [MERGE] forward port of branch saas-3 up to a66f3dd 2014-06-25 12:33:17 +02:00
Martin Trigaux d9e6a7a9ae [FIX] calendar: do not parse date to date
When creating an event from the calendar view, no need to parse a date to date (error undefined is not a function)
2014-06-23 16:33:41 +02:00
Pariket Trivedi f0765121c6 [IMP] calendar: favorite contacts list
Improved calendar's favorite meeting list and added a input box to directly
insert the partner in favorite list and 'X' to remove the partner's name
from the favorite meeting list in calendar view.
2014-06-23 15:03:29 +02:00
Christophe Simonis adf07a9490 [MERGE] forward port of branch saas-4 up to 5087612 2014-06-19 16:13:35 +02:00
Christophe Simonis 5087612d1d [MERGE] forward port of branch saas-3 up to bf53aed 2014-06-19 15:44:07 +02:00
Thibault Delavallée 3dcdd2180a [FIX] web_calendar: check for edit access rights + use correct display mode (view or edit) when going into a document form view from the calendar. 2014-06-19 12:26:24 +02:00
Kersten Jeremy 20545be3db [REF] Replace temp name by real name
bzr revid: jke@openerp.com-20140505154343-7r6t02n51ts8m8j9
2014-05-05 17:43:43 +02:00
Kersten Jeremy 1aff5f6bf8 [MERGE] Merge with trunk
bzr revid: jke@openerp.com-20140502142126-408hej7jdb9bnrzm
2014-05-02 16:21:26 +02:00
Antony Lesuisse 5e21a4235d [MERGE] saas-4 up to dle@openerp.com-20140501121915-q88k37nd25ietw8c
bzr revid: al@openerp.com-20140501172508-tjennzht30ktw3nz
2014-05-01 19:25:08 +02:00
Kersten Jeremy 0853de32fb [FIX] Allow to use attendee_people without use_contact. Allow to use an avatar in each event distinct from sidebar. Allow False to hide avatar in sidebar.
bzr revid: jke@openerp.com-20140429150038-zkf2dwxu15tp04qd
2014-04-29 17:00:38 +02:00
Fabien Meghazi d60af567ad [FIX] web test suite: manually fetch registry
bzr revid: fme@openerp.com-20140428132846-k8ofnlsse4s28jpr
2014-04-28 15:28:46 +02:00
Kersten Jeremy 36266e8bc9 [FIX] Calendar - Use date AND datetime to store the event date. If allday, we use a date, else a datetime
bzr revid: jke@openerp.com-20140425085737-a0zmym07ydk0fltj
2014-04-25 10:57:37 +02:00
Cedric Snauwaert 7990c39127 [FIX]modal: button were not showing in calendar
bzr revid: csn@openerp.com-20140416151543-im41f9rpqj6ll742
2014-04-16 17:15:43 +02:00
Kersten Jeremy 66918d6e32 [FIX] Force recompute the size of column for calendar, else on small screen, the size of columns for the last day is not the same that others.
lp bug: https://launchpad.net/bugs/1290942 fixed

bzr revid: jke@openerp.com-20140318174445-rjv3xq2rcxr3n5y9
2014-03-18 18:44:45 +01:00
Kersten Jeremy 203cc0b576 [FIX] Render mini calendar with correct date.cultureInfo according to user language
bzr revid: jke@openerp.com-20140311170845-sfm7txcllsmkk9wj
2014-03-11 18:08:45 +01:00
Kersten Jeremy 8da3b9e4d4 [FIX] Calendar, use date culture info for shortDateTime and axis in week view
bzr revid: jke@openerp.com-20140311152938-qdmf9xre758ri222
2014-03-11 16:29:38 +01:00
Kersten Jeremy f8bad6f814 [FIX] Fix bug for duration, duration are computed according to if the event is an alll day or not
bzr revid: jke@openerp.com-20140311093515-02xw8phrcqhgz6zx
2014-03-11 10:35:15 +01:00
Kersten Jeremy 67ea6db043 [FIX] Fix the event duration from calendar between calendar view and form view
bzr revid: jke@openerp.com-20140310150925-c6oskm0o4pxqma0q
2014-03-10 16:09:25 +01:00
Kersten Jeremy 449dd4638d [FIX] Replace srcElement into target in JS from calendar, because Firefox does not support srcElement
bzr revid: jke@openerp.com-20140307122617-26756dgeeuqs168i
2014-03-07 13:26:17 +01:00
Kersten Jeremy 3279c76c62 [FIX] Fix bug with filter when date are between 2 months. If an event was starting before the current month, but ending this month or later... it was not always displayed
bzr revid: jke@openerp.com-20140225234250-2lx3tc9ktwume7a9
2014-02-26 00:42:50 +01:00
Kersten Jeremy 02835ebdbd [REF] Refactoring all filters. Now, calendar remember if the filter is checked between each do_search and event_source refresh
bzr revid: jke@openerp.com-20140225154137-45tr7l50xlceom2b
2014-02-25 16:41:37 +01:00
Kersten Jeremy 50c3d34a8e [FIX] Transform get_default_options of calendar into a function, to be instancied after date.js
bzr revid: jke@openerp.com-20140225153926-ltwubk1sxfi3heuv
2014-02-25 16:39:26 +01:00
jke@openerp.com 50849309d1 [FIX] web_calendar: correct timezone handling when creating new events
bzr revid: odo@openerp.com-20140219163134-dzmx34yffnithn30
2014-02-19 17:31:34 +01:00
jke-openerp 53790502df [FIX] Fix bug with timezone, for no all_day event also ! (Eg : in hr_holidays)
bzr revid: jke@openerp.com-20140218123124-axbf3bvznlgqytsf
2014-02-18 13:31:24 +01:00
jke-openerp da1063da28 [FIX] Fix bug with timezone for All day event
bzr revid: jke@openerp.com-20140218111050-bhvl8i4t7efrll16
2014-02-18 12:10:50 +01:00
jke-openerp bbf433c13d [FIX] Use $el.find() to find the current calendar, else we got undesired effect in dashboard where when we do a quick_create, all dashboards of type calendar was impacted by the selector $()
bzr revid: jke@openerp.com-20140218090322-fp3ybgfwmjcteadp
2014-02-18 00:03:22 -09:00
jke-openerp 7086c39a25 [FIX] Fix bug with filter which don't update filter when we add a new event with somebody who are not already in the filter
bzr revid: jke@openerp.com-20140217162443-k94bfac61srkjlfz
2014-02-17 07:24:43 -09:00