Commit Graph

334 Commits

Author SHA1 Message Date
Denis Ledoux 06eccf5a54 [FIX] event: located dates in events name
The user timezone wasn't respected in the events name.

e.g. for a user with timezone UTC+1,
for an event
from 12/01/2015 00:00:00
to   12/02/2015 00:00:00
The dates in the event name were set to
(2015-11-30 - 2015-12-01)
while it must be
(2015-12-01 - 2015-12-02)

opw-657962
2015-12-01 12:32:14 +01:00
Nicolas Lempereur 9717afbbb7 [FIX] event: fix send mail to event registrant
Currently, the button "Send Email" next to the email address of an event
registration didn't work if a partner was not set.

This commit removes the button, thus removing the feature but partially
adds it back via the chatter suggested recipients in the same way it is
done for a lead.

It is still partially a feature regression since to work the viewing
user need more access rights (e.g read access right on res.partner)
than before.

closes #9486
opw-653127
2015-11-17 16:25:45 +01:00
Denis Ledoux 99c44334f1 [FIX] event: convert related country_id field to compute field
To avoid being able to change the country of the address (res.partner) from this field
2014-10-16 11:15:34 +02:00
Thibault Delavallée e8783d1a8a [FIX] event: jump on the correct menu after installing
the event application (event kanban view).

Also added a missing description on event.type model.
2014-10-01 10:47:28 +02:00
Thibault Delavallée 8eb4efc35f [FIX] event: added missing description on event.event model, leading to event model having Email Thread has description due to inheritance. 2014-09-30 09:40:44 +02:00
Martin Trigaux e31d25c867 [FIX] event: subscribe customer error
The onchange methods needs to work with browse records and address_get returns an id. Fixes #2484
2014-09-18 11:08:19 +02:00
Thibault Delavallée ced0da960e [FIX] event: registration and confirmation template now have a domain on event.registration.
Otherwise all templates are displayed and this will lead to some issues.

Also added a description on event.registration, because currently its
displayed name is Email Thread.
2014-08-01 10:11:36 +02:00
Martin Trigaux f138aa2608 [FIX] models: display_name and name_get mismatch
- display_name uses name_get and not the other way around:
name_get should not call _compute_display_name, _compute_display_name should call name_get.
The previous behaviour was not backward-compatible with the old api.
All the models redefining name_get would have 2 different behaviors between name_get and display_name.

- Do not set an inverse function to display_name:
In most cases, writing on display_name writes on _rec_name (if any, not mandatory).
If the display_name computation is redefined, we need to redefine as well the inverse method to avoid unexpected behaviour
This required to also modify tests in base_import as readonly fields are avoided.

- Remove search method on display_name:
For the same reason as for the first point, it could be good that searching on display_name use name_search (and not the other way around).
However doing this would be very inefficiant (need to do the search, without limit, extract the ids of the name_get result just to generate
a subdomain ('id', 'in', [...]). As in most cases it would anyway mean to search on the _rec_name it's better to directly do so.

- Changing label to avoid mismatch:
In view displaying the list of fields or when a match is made on the label of a field (e.g. when importing csv file,
matching is made on both label and technical name), the fact that display_name field has '
Calling it 'Display Name' will avoid most errors.

- remove display_name definition from website_forum_doc,ir_model:
These fields are doing the same thing as the display_name of the new api, we can remove them.
We need to keep the one for res.partner as it's a stored field.
2014-07-25 13:58:59 +02:00
Christophe Simonis f654a7719b [MERGE] forward port of branch saas-5 up to 73d39a0 2014-07-10 22:49:53 +02:00
Christophe Simonis 73d39a0c8c [MERGE] forward port of branch saas-4 up to a361947 2014-07-10 22:12:16 +02:00
Christophe Simonis a361947143 [MERGE] forward port of branch saas-3 up to a35aec2 2014-07-10 22:02:58 +02:00
Richard Mathot a0a17fa46e [TYPO] in event, event_sale 2014-07-10 14:11:01 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jeremy Kersten fd8ae038d8 [FIX] Event - Remove limit size 64 in the field name 2014-06-26 13:07:06 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Xavier Morel d325c0caef [REV] attempt to revert incorrect removals in f4d78ae738 2014-05-30 16:00:28 +02:00
Kersten Jeremy 0826340b8a [FIX] Event - Don't update the context but a copy when we recompute dates with the timezone specified for the event.
bzr revid: jke@openerp.com-20140509123121-xchv133t7gh0e5nh
2014-05-09 14:31:21 +02:00
Kersten Jeremy 67fb735b50 [FIX] Event - Allow to specify the timezone from the event and use it in template mail.
bzr revid: jke@openerp.com-20140509121827-3ngkf93jhduobcoa
2014-05-09 14:18:27 +02:00
Raphael Collet 1d0a6e20a4 [FIX] event: move definition of fields track_ids and count_tracks to the right module
bzr revid: rco@openerp.com-20140505085739-z2asr1vrx6yyjtlh
2014-05-05 10:57:39 +02:00
Gery Debongnie 5aa2fa150c [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140502130753-4z24z1to9pkrckvq
2014-05-02 15:07:53 +02:00
Olivier Dony 3891e0f2aa [FIX] event_sale: call to parent store trigger resolver fails due to class mismatch for <unbound_method>
bzr revid: odo@openerp.com-20140429105020-0itp8j0oa4im3bj7
2014-04-29 12:50:20 +02:00
Richard Mathot (OpenERP) 11680fd1f7 [IMP] Usability of event and event_sale
bzr revid: rim@openerp.com-20140423133917-zpulvflwflgz12sw
2014-04-23 15:39:17 +02:00
Gery Debongnie f57b767361 [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140415150146-5ovdjzta58t5dhd2
2014-04-15 17:01:46 +02:00
Gery Debongnie 0a3987b6c9 [FIX] correct the spelling 'registration' to 'registration' in addon event
bzr revid: ged@openerp.com-20140414132706-qn2q82d33jdq59q6
2014-04-14 15:27:06 +02:00
Fabien Pinckaers 1c4b74a7d1 [IMP] translateable event description
bzr revid: fp@tinyerp.com-20140414123443-qom78utc45e86lh1
2014-04-14 14:34:43 +02:00
Gery Debongnie 2e9ee9c76e [MERGE] merge from rma branch
bzr revid: ged@openerp.com-20140410145131-fj17mdpi13wa5a9m
2014-04-10 16:51:31 +02:00
Martin Trigaux ad7e8b39f4 [IMP] event: add trigger field for stored seats_* fields and remove print
bzr revid: mat@openerp.com-20140404123700-w576o0biixy32udc
2014-04-04 14:37:00 +02:00
Martin Trigaux 8fdc0384ca [MERGE] [IMP] event: store number of seat used to avoid unnecessary computations (performance improvement)
bzr revid: mat@openerp.com-20140404121735-dtfc79y7ax9qwx6e
2014-04-04 14:17:35 +02:00
Anael Closson eb1274f612 [IMP] event: performance improvement for event with large amount of registration.
lp bug: https://launchpad.net/bugs/1294607 fixed

bzr revid: acl@openerp.com-20140404100956-epbv1o3fq63l1n5f
2014-04-04 12:09:56 +02:00
Yogesh Parekh (OpenERP) b86c9ccd13 [IMP]: Convert buttons into stat button in event module
bzr revid: ypa@tinyerp.com-20140326121108-odkq61lnf1cuyog5
2014-03-26 17:41:08 +05:30
Olivier Dony 76d89c0477 [MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 9133 dle@openerp.com-20140214131810-9abebxpfeoga1crn
bzr revid: odo@openerp.com-20140217091203-kmeg4qsn2qyvll23
2014-02-17 10:12:03 +01:00
Denis Ledoux 0ef17beed0 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9846 revid:dle@openerp.com-20140217124044-o8sgz1esfqeha01f
bzr revid: dle@openerp.com-20140214100922-m6rf7c6x85nv67sl
bzr revid: dle@openerp.com-20140214114713-oab4kbearvv7g3nh
bzr revid: dle@openerp.com-20140214131810-9abebxpfeoga1crn
bzr revid: dle@openerp.com-20140217124230-ov201kfep88f5tn7
2014-02-17 13:42:30 +01:00
Denis Ledoux ea007a4810 [FIX] event: on_change methods must return a dict, always.
bzr revid: dle@openerp.com-20140214114627-yi05u3y45w797fza
2014-02-14 12:46:27 +01:00
Denis Ledoux b3268a48c2 [FIX] event: put back country_id related field as needed in event itself (not just website_event)
bzr revid: dle@openerp.com-20140130122051-cm2u2hotlnfv4bxj
2014-01-30 13:20:51 +01:00
Christophe Matthieu 07adc071df [IMP] website_event: split module: remove depends with sale and move event's ticket form into a bridge: website_event_sale
bzr revid: chm@openerp.com-20140128113101-aon81actmpahyn58
2014-01-28 12:31:01 +01:00
Christophe Matthieu d588e44d34 [IMP] event,event_sale: refactoring; remove crappy 9999 hardcoded values; remove visibility; add constraints
[FIX] remove module_portal_anonymous ref
[IMP] website: res_config with wizard
[IMP] event: remove related field to res.partner
[FIX] website_sale: change crappy _get_pricelist method (who return a browse record to a function field type many2one)

bzr revid: chm@openerp.com-20140128092037-zrrbz1hrmgat88o4
2014-01-28 10:20:37 +01:00
Christophe Matthieu 43044d8ee7 [IMP] event,event_sale: refactoring; remove crappy 9999 hardcoded values; remove visibility; add constraints
bzr revid: chm@openerp.com-20140127135828-z848mvpis5d9xyh8
2014-01-27 14:58:28 +01:00
Xavier Morel 372b52b044 [FIX] events yaml test, remove event.on_change_address_id
on_change_address_id was used to populate "display" address fields
from the address m2o. The address fields were removed in favor of
using show_address (in the context), leaving an onchange called
returning fields which don't exist in the view, thus crashing the
corresponding yaml test (which checks for that).

Since the onchange has no purpose left, remove it and its call.

bzr revid: xmo@openerp.com-20140108133015-ald901hsy1lqo7tv
2014-01-08 14:30:15 +01:00
Fabien Pinckaers 183c75a3c7 [IMP] default values on new events
bzr revid: fp@tinyerp.com-20131126161424-savrp6u63zmpoq5w
2013-11-26 17:14:24 +01:00
Fabien Pinckaers fb0abe39bc [WIP] EVENT: new features required for community days/big events
Manage tracks/talks
	Allow a dedicated menu per event
	Allow a blog per event, to announce stuff
	A "Call for Proposal" page

bzr revid: fp@tinyerp.com-20131124185434-hwyluq90e2g4g7tj
2013-11-24 19:54:34 +01:00
Fabien Pinckaers 66b721e848 [FIX] misc fixes
bzr revid: fp@tinyerp.com-20131123105650-ucwfuqf7o6qtpszc
2013-11-23 11:56:50 +01:00
Fabien Pinckaers 57585307fa [NEW] Adding tracks management for events (community meeting)
bzr revid: fp@tinyerp.com-20131123092728-jo2f197rjnt39z7g
2013-11-23 10:27:28 +01:00
Thibault Delavallée 4c7d96e33d [IMP] event:
- note (Description field) is renamed into Description and set to an html field
- added demo data from website_event to base event, no need to add a new field and to delay demo data
- updated form view

bzr revid: tde@openerp.com-20130924101020-b1xx96vdgcfd2mz2
2013-09-24 12:10:20 +02:00
Christophe Matthieu ca54d94534 [IMP] website_event, event
bzr revid: chm@openerp.com-20130806130053-wt1l25ri50c1z0e6
2013-08-06 15:00:53 +02:00
Christophe Matthieu d67443803a [IMP] website_event
bzr revid: chm@openerp.com-20130805130420-wlf5qkbamii90jcr
2013-08-05 15:04:20 +02:00
Thibault Delavallée 3c79c0be17 [MERGE] Sync with trunk, especially about project and portal project security rules that were backported into 7.0
bzr revid: tde@openerp.com-20130416081736-ictzkj9feu46wm6y
2013-04-16 10:17:36 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Thibault Delavallée 9cc33004f6 [CLEAN] event: light cleaning.
bzr revid: tde@openerp.com-20130412125146-ec2moex2e802skrz
2013-04-12 14:51:46 +02:00
Thibault Delavallée 7c026132ff [REF] event: visibility moved from portal_event to event. Customized rules, removed now unnecessary files.
bzr revid: tde@openerp.com-20130410125117-m9ir36qhkp9fqax1
2013-04-10 14:51:17 +02:00
Olivier Dony 49597f0e66 [MERGE] *: improved english wording, suggestions courtesy of OpenERP Community
bzr revid: odo@openerp.com-20121221164808-kdjrtcbgma4dr3on
2012-12-21 17:48:08 +01:00