Commit Graph
501 Commits
Author SHA1 Message Date
Jeremy Kersten ce3f797068 [FIX] website_event: avoid traceback when page doesn't exists
The controller /event/<event_id>/page/<page> raise exception if page is not existing.

Allow to pass the template reference when user are creating a new page.
Without it, it is impossible for the end user to create a website_event page without
change manually the xml id because the xml id is based on the module from the template.

This fix is retro compatible, because from_template will be ignored until next update
of website. And during update from website, website_event will be updated because it's a
dependance and so the default_page template created.
2016-01-08 23:19:29 +01:00
Odoo Translation Bot 4dac9f2b73 [I18N] Update translation terms from Transifex 2016-01-03 01:24:45 +01:00
Martin Trigaux ddeb90d46e [I18N] Update translation terms from Transifex 2015-12-29 17:40:57 +01:00
Odoo Translation Bot e6a92e523f [I18N] Update translation terms from Transifex 2015-12-27 01:25:25 +01:00
Odoo Translation Bot 9e211ef127 [I18N] Update translation terms from Transifex 2015-12-20 01:26:02 +01:00
Odoo Translation Bot 5254e31a46 [I18N] Update translation terms from Transifex 2015-12-13 01:27:04 +01:00
Xavier Morel 87090c1b8b [FIX] event header date on website
t-field expects a UTC datetime which it then localizes to the current
viewer's timezone (using context tz from the browser), but goal here was
to display the event's own local time, so t-field was provided an
already localized datetime and would parse it as UTC then re-offset it
based on the user's timezone, resulting in a completely nonsensical
displayed datetime.

Just display the localized datetime without reprocessing it (save to
slice off the seconds count)
2015-12-10 15:25:02 +01:00
Odoo Translation Bot 8e7417ffa6 [I18N] Update translation terms from Transifex 2015-12-06 01:28:23 +01:00
Odoo Translation Bot 3180f80bf9 [I18N] Update translation terms from Transifex 2015-11-22 01:30:36 +01:00
Odoo Translation Bot 3d7ae73305 [I18N] Update translation terms from Transifex 2015-11-15 01:35:06 +01:00
Odoo Translation Bot 14799a9006 [I18N] Update translation terms from Transifex 2015-11-08 01:32:40 +01:00
Odoo Translation Bot e3287faee6 [I18N] Update translation terms from Transifex 2015-11-01 01:32:05 +01:00
Odoo Translation Bot 265b789e38 [I18N] Update translation terms from Transifex 2015-10-25 01:34:24 +02:00
Odoo Translation Bot 7592d85b1f [I18N] Update translation terms from Transifex 2015-10-18 01:35:07 +02:00
Odoo Translation Bot ff9b997736 [I18N] Update translation terms from Transifex 2015-10-11 01:33:54 +02:00
Christophe Simonis 7636b510a2 [ADD] *: CSRF protection in forms and routes
* make CSRF protection the default on all non-SAFE methods
  note: there currently is no way to call a CSRF-protected endpoint
  without a form-encoded entity-body as that's the only place we get the
  CSRF token from.
* simple CSRF token generation: just use the HMAC'd session id, no
  generating a new random token per session then HMAC it
* use constant-time equal function to avoid timing attacks
* assert that a database secret is configured before hashing/validating
  the CSRF token
* opt-out database manager from CSRF: The super-admin password serves
  the purpose of a CSRF token in the database manager screens.
  There is no request database to obtain the
  secret and generate a CSRF token.
2015-10-01 01:36:50 +02:00
Xavier Morel f01c4e84b0 [FIX] website_event: unnecessary POST call 2015-10-01 01:36:49 +02:00
Yannick Tivisse 47a82a8e9c [REM] Remove useless button in some module descriptions 2015-09-30 16:42:18 +02:00
Martin Trigaux e0eaaee2db [I18N] add l10n_sa and pos_cache terms + reexport
One last export before v9!
2015-09-29 14:40:59 +02:00
Christophe Matthieu 0156513809 [FIX] website_event: click on edit badges. open the page in edit mode instead of readonly mode 2015-09-29 14:14:04 +02:00
Thibault Delavallée aded9bf839 [FIX] event :
- dates are editable even in confirm state. Only events in done states are
  not editable.
- the print badge button is actually a button to edit badges, so let us udpate
  the name
2015-09-25 13:30:07 +02:00
Thibault Delavallée 5885e5d9d0 [FIX] website_event: categories display
Indeed the type field has been renamed to event_type_id. However some code
was still relying on the type and type_count names, instead of event_type_id
and event_type_id_count.
2015-09-23 16:22:35 +02:00
Jérome Maes b3e7629566 [FIX] website_event_track : menu items generation
When uncheck 'show tracks on website' or 'tracks proposal' the menu of event page (on website) was not modified.
2015-09-15 16:42:38 +02:00
Martin Trigaux 2e8996ce0b [I18N] add missing translations
Fetching was stopped at sale, because reasons
2015-09-15 09:30:37 +02:00
Martin Trigaux 1348fee217 [I18N] all: regenerate .pot and pull .po
How great is it to get Odoo (almost) 9.0 (almost) translated?

Clean .tx/config file
Regenerate .pot files
Fetch current translations from Transifex (10% completion)
2015-09-14 17:53:37 +02:00
Fabien Pinckaers f4e24b9843 [IMP] Event form view 2015-09-10 08:48:14 +02:00
Martin Trigaux 613286b0e8 [I18N] export application terms of all modules
Now that most refactoring has been merged

It is better to have red a great work of another culture in translation than never to have read it at all.
― Henry Gratton Doyle
2015-09-07 17:21:58 +02:00
Yannick Tivisse bdfc1a56b8 [REM] Remove res_partner_14, replace him by res_partner_4 2015-08-25 19:27:22 +02:00
Yannick Tivisse 8b4a3e9ca4 [REM] Remove res_partner_6, replace him by res_partner_1 2015-08-25 19:27:21 +02:00
Yannick Tivisse ed97a70b10 [REM] Remove res_partner_5, replace him by res_partner_3 2015-08-25 19:27:21 +02:00
Martin Trigaux 6c51a80aa4 [I18N] export application terms of all modules 2015-08-25 12:01:38 +02:00
Yannick Tivisse 1617db3337 [IMP] Modules list reorganization to correspond with the app switcher. 2015-08-21 10:44:51 +02:00
Yannick Tivisse 0decfd94d1 [IMP] __openerp.py__ files : remove all occurence of authors and website
where it was 'Odoo SA', 'OpenERP SA', 'OpenERP s.a.', 'OpenERP SA', 'OpenERP'
      or 'http(s)://openerp.com' or 'http(s)://www.odoo.com'
2015-08-20 16:15:59 +02:00
Thibault Delavallée 4592be3bfa [RENAME] event: type -> event_type_id
At last I will be able to remember that the type of an event is not
a string, but a m2o to event.type model.
2015-08-20 11:09:43 +02:00
Paramjit Singh Sahota 8ada8b8276 [IMP] event, event_sale, website_event_track: usability improvements
Among others small improvements :

 - [event] remove automatic logging of new registrations on event; for big events
 it produces only noise
 - [event_sale] fix product creation from event management; better display of
 address and date of the event
 - [website_event_track] add a cancel state on the track model. The stat button
 on the event shows only not-canceled state. Also added some tips.
2015-08-11 16:11:19 +02:00
Martin Trigaux ec47601045 [FIX] website_event: demo data description
The title of the events states 5 days training while the full description
explains the plan of a 3 days training on Odoo

Courtesy of Mathias Neef
2015-08-06 12:27:50 +02:00
Christophe Simonis 2cf91d16a5 [MERGE] forward port of branch saas-6 up to 63e92cb 2015-07-22 16:17:54 +02:00
Christophe Matthieu 9665882fba [IMP] web_editor: adapt css, js and xml to use web_editor 2015-07-10 17:00:12 +02:00
Denis Ledoux fc09d3755a [FIX] website_event: add route alias /events
Having as URL /event (not plural), for the list
of events, is not really user friendly.

opw-644476
2015-07-10 10:11:54 +02:00
Christophe Simonis a304194936 [MERGE] forward port of branch saas-6 up to 81b5c60 2015-06-25 00:26:31 +02:00
Olivier Dony a13fae75ef [FIX] website_event: trailing comma in fwd-port a180cbddf7 2015-06-23 16:49:38 +02:00
Olivier Dony a180cbddf7 [MERGE] Forward-port 8.0 up to 9b1aa53f29 2015-06-23 15:36:16 +02:00
Martin Trigaux ad00496a41 [IMP] website_event: hide technical menus
Field show_menu generates three menus Introduction, Location and Register on the
page of the event on the website.
Generating new menus requires the Technical Features groups so checking this box
would produce and error on non-technical users.
Moreover these menus are hardcoded, making it less useful and may produce
unexpected behaviour (replaces previous menus).
Hide the menus to non-technical users and add help message explaining the
effect of the field.
Fixes #7099
2015-06-22 14:51:19 +02:00
Julien Legros b4d66099ca [IMP] website_*: website publish button
When clicking on the publish/unpublish button in a form view, if the
user does not belong to the `base.group_website_publisher` group,
fallback to a simple toggling behavior.
2015-06-19 12:22:46 +02:00
Nicolas Lempereur e765875700 [FIX] form_views: fix button box for new design
Now there should be only one button box per page, and the name should be
"button_box".

Conflicts:
	addons/crm/crm_tip_data.xml
	addons/event/event_tip_data.xml
	addons/fleet/fleet_view.xml
	addons/hr/hr_view.xml
	addons/hr_recruitment/hr_recruitment_view.xml
	addons/project/project_tip_data.xml
	addons/purchase/purchase_tip_data.xml
	addons/sale_crm/sale_crm_view.xml
	addons/website_quote/views/website_quotation_backend.xml
	openerp/addons/base/res/res_partner_view.xml

Conflicts:
	addons/account_reports/views/partner_view.xml

Conflicts:
	addons/claim_from_delivery/claim_delivery_view.xml
	addons/stock/stock_view.xml
2015-06-15 16:30:37 +02:00
Christophe Simonis 4647778758 [MERGE] forward port of branch 8.0 up to ea59856 2015-06-15 12:28:32 +02:00
Odoo Translation Bot e2c9699cfc [I18N] Update translation terms from Transifex 2015-06-08 14:03:50 +02:00
Goffin Simon eabf7df5f9 [FIX] website_event: format event periode
The format period defined by the start_date and end_date of an event
can be set according to the language.

opw:640011
2015-06-02 10:42:46 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Martin Trigaux 4528ccf148 [I18N] First sync of translations from Transifex
Translation is that which transforms everything so that nothing changes.
 -- Grass Günter
2015-05-29 21:58:20 +02:00