Commit Graph
897 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
Denis Ledoux f9a462f3e2 [FIX] website: different assets_common according to user rights
The content of an asset can change according to which modules
are installed, but cannot change according to the user rights,
according to which user is connected.

Otherwise, the assets is re-generated  and stored
in the filesystem too often, which is against the
concept of the assets.

opw-657046
2015-11-26 18:08:42 +01:00
Denis Ledoux d5d8140f3a [MERGE] forward port of branch saas-6 up to 7158eaf 2015-11-02 18:06:25 +01:00
Denis Ledoux f9efc14440 [MERGE] forward port of branch saas-6 up to cea0a80252 2015-11-02 17:24:30 +01:00
Denis Ledoux 7158eaf80d [MERGE] forward port of branch 8.0 up to ee2b550 2015-10-29 16:28:54 +01:00
Denis Ledoux e6a3852c1f [FIX] website: child menus without url.
This is possible to have a child menu without URL.
The condition checking if the `active` class
must be added or not must take that into account.

opw-653132
2015-10-27 13:47:08 +01:00
Christophe Matthieu d7b5eeabeb [IMP] web_editor: move picture options from snippet to summernote bar
Difficulty for the user to understand how to change the images.
Some options summernote being in the bar and the other in the snippets editor.
Need to merge this options.
2015-10-26 11:43:36 +01:00
Denis Ledoux 3db7cc4673 [MERGE] forward port of branch 8.0 up to f2bc45f 2015-10-23 11:33:24 +02:00
Denis Ledoux f2bc45f91f [FIX] website: submenu without url
This is not impossible to have a submenu without URL.
The condition to set the menu item as active or not
must therefore take that into account.

opw-652688
2015-10-23 11:11:42 +02:00
Fabien Pinckaers 1a58579540 [FIX] fix and improve res.config views and typos 2015-10-08 05:42:48 -07:00
Olivier Dony 0c35468806 [FIX] * settings: cosmetic changes for boolean options
Remove some duplicate config settings and improve
the layout of boolean options in various
config screens
2015-10-05 09:56:00 +02:00
Christophe Simonis d750206c49 [MERGE] forward port of branch saas-6 up to e9f1ee4 2015-10-01 15:16:59 +02:00
Aaron Bohy de024f43ab [FIX] web,website: bundle utils.less to assets fronted 2015-10-01 14:00:19 +02:00
Antony Lesuisse ed1bbbb8d0 [IMP] enterprise settings 2015-10-01 09:06:33 +02:00
Xavier Morel cea29e0c01 [ADD] client-side CSRF support
* add CSRF token as core.csrf_token
* add CSRF tokens to client-generated and/or JS-submitted forms
* remove broken "compatibility" mode of web.ajax.post

  /cc @dmo-odoo I've no idea how that was supposed to work, from looking
  things up all modern browsers seem to support FormData, and old IEs
  which don't don't support fallbacks either and would require
  submitting an actual form as fallback so...
2015-10-01 01:36:50 +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 8475ee13d6 [FIX] website: 500-error template
Fix template markup so CSS correctly applies and nav is correctly
bordered and doesn't take half the page height.
2015-09-29 11:15:58 +02:00
Xavier Morel 24a20cd3fb [FIX] website: looks of 500 Internal Error page
Kinda. Link to CSS had been broken, replace by asset calls.

Dump the assets in debug mode just in case.
2015-09-28 17:44:15 +02:00
Jeremy Kersten fe3e91d1ff [FIX] website: fix footer
Inconsistency between col-md and col-lg (offset)
Add auto word wrap to avoid that text override next column
2015-09-25 16:38:09 +02:00
qsm-odoo f22686fb4d [FIX] website: published/unpublished button + useless code
For some strange reason, two CSS rules had different priorities between
firefox and chrome (which forced chrome to always display published and
unpublished at the same time).

The chosen solution is to change the value of the button in published/
unpublished instead of toggling and relying on CSS classes (with this
method, the DOM looks better too).

There was also duplicated code in website for assets_backend.
2015-09-15 13:17:43 +02:00
qsm-odoo 5c76b5958c [IMP] web,website: mimetypes images
* Convert CSS to LESS.
* Put file in assets_common instead of both backend and frontend.
2015-09-15 09:36:10 +02:00
Christophe Matthieu 29e45d1cc2 [FIX] im_livechat, website: typo t-translation 2015-09-09 08:44:40 +02:00
Christophe Matthieu 522fcacb21 [IMP] base: assets now directly use /web/content url 2015-09-03 19:31:00 +02:00
Christophe Matthieu d4bae06d08 [IMP] web: use css to display attachment mimetype
Widgets and website display images or display the type with icon like pdf, doc...
2015-08-21 22:06:52 +02:00
Ronak Baxi 393f136509 [IMP] *: Uniformize all modal footers
The main button has classnames btn btn-primary.
Other buttons have classnames btn btn-default.
No more 'or' between the buttons.
2015-08-19 08:10:45 +02:00
Christophe Simonis 73e652818b [MERGE] forward port of branch saas-6 up to 8d95f6d 2015-08-15 16:57:35 +02:00
Christophe Simonis 8d95f6dcdf [MERGE] forward port of branch 8.0 up to 19b5ba2 2015-08-14 17:26:04 +02:00
Denis Ledoux 19b5ba2b08 [FIX] website: condition to flag a menu as active in the top menu
1. A menu with `/page/website.***` should be flagged as `active`
if the current url is `/page/***`. This is a retro-compatibility
patch for c9d41679fb, so the
menu is marked as active without having to rename it, by
removing this `website.` thing.

2. If you defined two menus with as url `/page/test` and `/page/test2`
Both menus were flagged as `active` when you browsed the url
`/page/test2`, because it started by both menus urls.

Fixes #3059
Closes #3070
2015-08-14 17:11:16 +02:00
qsm-odoo 07c020d7e5 [IMP] website: PDFJS lib - GitHub import
* Import src, web and external directories from PDFJS GitHub repo
2015-08-14 13:54:49 +02:00
qsm-odoo 5960d3cff8 [IMP] *: New icons 2015-08-11 14:31:10 +02:00
Christophe Simonis 2cf91d16a5 [MERGE] forward port of branch saas-6 up to 63e92cb 2015-07-22 16:17:54 +02:00
David Monjoie df9725df26 [IMP] web_editor,website: added scalable margins in less
The original commit by fka used to define less variables like this:
@px-4: 4px
@px-8: 8px

The goal was to be able to change the margin values in
media queries for smaller screens.
However, as the less is only compiled once in css, those
variables didn't really help as you couldn't redefine them
from inside a media query and have the less magically
reassign the margins on the fly.

I created less helper functions to be able to easily redefine
the margins for smaller screens from inside media queries.

The task also required to replace the nbsp in the html by the
newly created mr and ml classes.

This is also the first phase of the sass -> less transition.
2015-07-20 15:00:24 +02:00
Jeremy Kersten c1d290d699 [FIX] website: fix snippet references 2015-07-15 11:38:15 +02:00
Jeremy Kersten f84bbda221 [FIX] website: fix snippet comparisons 2015-07-15 11:34:28 +02:00
Jeremy Kersten 80db19100a [FIX] website: dont call a dog a cat !
Already in V8, the 'Separator' is not a content but a structure snippet !
2015-07-10 18:15:47 +02:00
Jeremy Kersten 653ccf7b3b [FIX] website: A panel is a panel... 2015-07-10 18:15:46 +02:00
Jeremy Kersten 1621d3fe1a [FIX] website: Fix background option
Add oe_dark in color list for 'background color', else end user cannot change the color
Force background-color and not background, else background-size from oe_img is overrided
and so the background is displayed with a size:auto instead of cover
2015-07-10 18:15:46 +02:00
Christophe Matthieu 087fd6942b [IMP] web_editor: add test translator 2015-07-10 17:00:15 +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
Christophe Matthieu 8c559044a5 [IMP] web_editor: split website into web_editor (to use editor in backend for html field) and website 2015-07-10 17:00:11 +02:00
Christophe Matthieu a616c57c60 [IMP] web: create a template with bootstrap scripts 2015-07-10 16:34:35 +02:00
Jeremy Kersten 5ed23c87d4 [FIX] website: use summernote.less and fix color picker (+ add FA support) 2015-07-10 16:10:03 +02:00
Jeremy Kersten fa7d32e722 [REV] website, website_quote: partial revert of d1d8802/ed9f8fd
This hack was just good to print, but break all repsonsive snippets.
Previous commit specify the use of col-md when printing, and so avoid
to add xs anywhere !
2015-07-10 16:09:32 +02:00
Jeremy Kersten 9b11430887 [FIX] website: basic banner snippet - allow to change background after that the snippet is dropped 2015-07-10 16:09:32 +02:00
qsm-odoo fc3b25cefd [MOVE] web, website_*: select2(-bootstrap) in web and assets-common
* select2 was linked in both backend and frontend (by web and website)
* select2-bootstrap was in website and linked only in frontend but it
  is in fact needed in backend too

+ Remove useless link of the lib by other modules
2015-07-09 16:27:24 +02:00
Christophe Matthieu 548fb30735 [IMP] website: add a FAQ collapse snippet, the javascript is only used for edition (set id and target to use bootstrap default collapse code). 2015-07-08 16:55:09 +02:00
Ajay Javiya d8fb8fa6a9 [ADD] website : generic template for search and add functionality to clear search box 2015-07-07 14:10:14 +02:00
Raphael Collet cd925255b7 [FIX] addons: view extensions are no longer based on attribute string
In view inheritance, selecting an element based on the attribute `string` is
broken, since this attribute may be translated before the inheritance is
applied.  This fixes existing views to avoid such selections.
2015-07-06 16:58:04 +02:00
Christophe Simonis a304194936 [MERGE] forward port of branch saas-6 up to 81b5c60 2015-06-25 00:26:31 +02:00
Aaron Bohy bd3bf97dce [FIX] website: navbar template: don't call web.menu_link
for new design compatibility (those templates have been moved client-side)
2015-06-18 21:23:37 +02:00