Commit Graph
105018 Commits
Author SHA1 Message Date
Raphael Collet ff5e44d2de [REM] models: remove _all_columns 2016-08-31 17:21:45 +02:00
Denis Vermylen (dve) 6eca5d038f [FIX] website_sale: handle no partner address case
when purchasing products from website, if partner did not have a country set
the "pay now" button was broken. Now you get redirected to the billing form
to fill in your address.
2016-08-31 17:17:38 +02:00
Denis Vermylen (dve) c255342e8f [IMP] payment_*: change payment icon
take the payment icon from the acquirer image field, instead of a static
unchangeable icon. Change the acquirer image on all acquirers data.
2016-08-31 17:17:38 +02:00
Denis Vermylen (dve) 782c4b5665 [IMP] payment: hide fields on acquirer form view
Fields are hidden when needed, some moved to debug mode.
2016-08-31 17:17:38 +02:00
Denis Vermylen (dve) 23f3bde20d [FIX] payment: change custom acquirer to work
- custom acquirer auto_confirm field changed to none.
- changed default_acquirer_button to actually display a button
  used wire transfer's template (transfer_acquirer_button)
- set dependance to module_payment_transfer as it doesn't work without
  and use transfer as provider.

Note: This is a quick fix to make it work, it's quite ugly.
      Before the fix it didn't work an people duplicated the transfer
      payment acquirer and edited it.
      One downside for usability is that the payment icon will be the one
      from transfer.
2016-08-31 17:17:38 +02:00
Denis Vermylen (dve) 1a4af28067 [IMP] sale: remove website_portal from settings 2016-08-31 17:17:37 +02:00
Denis Vermylen (dve) 4ee51c9cfd [IMP] website_sale: move Pricelist menuitem
moved from catalag submenu to settings > eCommerce.
2016-08-31 17:17:37 +02:00
Denis Vermylen (dve) f90290d1c2 [IMP] website,w_sale: Website Admin settings view
- Add optional products and pricelists to ecommerce section
- add mail template sent when confirming a sale order
- rename and clarify using radio widgets
2016-08-31 17:17:37 +02:00
Denis Vermylen (dve) fbe3608c7e [FIX] web: avoid autoresize duplicates
In web_planner, changing pages would take more and more time after
a few clicks if autoresize was called on textareas. Every time we
would change page, autoresize was called on all textareas and added
an additional textarea for each one, doubling the amount on each page
change.
The autoresize function in dom_utils was checking too shallowly for
duplicates and created a new textarea where autoresize would again be
called upon on a later stage.
This commit fixes both problems.
2016-08-31 17:17:37 +02:00
Thibault Delavallée 275ee5825d [FIX] tools: sanitizer: decode pipe character
Mako uses pipe character in several occasions like |safe to tell an email is
safe. However the sanitizer will encode it, leading to template not correctly
rendered. Like other special characters used in mako, it is now decoded
after sanitize.
2016-08-31 16:27:55 +02:00
stefanorigano 262fe732ba [IMP] website: replace snippet thumbnails with better ones 2016-08-31 16:37:20 +02:00
stefanorigano 0cdfbc0fbe [REF] website: snippets layout/style improvements
* s_banner
    - Remove text-container hardcoded style (user will be able to use the
        new transparent color palette instead)
    - Improve indicators visibility on both dark or light bg
    - Cursor: pointer for navigation buttons
* s_cover
* s_quote: remove the whole snippet
* s_three_columns
* s_reference
    - Remove Quotes
    - Add new logo demo images
* s_button: rename from "Button" to "Call to Action" + some design
* s_feature_grid
2016-08-31 16:37:20 +02:00
stefanorigano 8c035a7a41 [IMP] web_editor: add transparent grayscale color palette
These colors were usually hardcoded in some snippets (.s_banner for
example) to increase text legibility over background images.

This commit will let the user personalize them.
2016-08-31 16:37:20 +02:00
stefanorigano 8ef4535327 [IMP] website: unable/enable snippet options for some snippets (parts)
* Remove background position and color options for parallax
* Add background/color options for .jumbotron (button and big message)
* Add background/color options for s_cover and s_banner text container
2016-08-31 16:37:20 +02:00
stefanorigano bcf2c87cd0 [IMP] website: adapt logo size to menu items 2016-08-31 16:37:20 +02:00
stefanorigano 937d299887 [IMP] website: replace images and better use them in snippets
* Reduce images number (remove unused ones)
* Improve images quality (so that they can be used for parallax too)
* Make them all available in the website library
* Snippet demo/default images are in a separate folder and a separate
record to allow theme customization (this was already the case for the
cover snippet but the system has been extended)
* Some snippet style improvements
2016-08-31 16:37:20 +02:00
stefanorigano a5400b7ad7 [IMP] website: add icons to all snippet options 2016-08-31 16:37:20 +02:00
stefanorigano 1634cad46c [REF] web_editor: editor UI style and stability improvements
* Review style of some UI components
* Rename some content
* Define a font-family less variable to be used to avoid that themes
customizations affect the UI. Note: theme should ideally not redefine
the font family of the body but of the #wrapwrap element but this is
done for safety.
* Overwrite other theme's customisations
* Minor style fixes
2016-08-31 16:37:20 +02:00
qsm-odoo 4d68d779dc [IMP] web_editor: force web_editor overlay option buttons to stay on one line
Before this commit, when the snippet was too narrow, the buttons broke
over multiple lines.
2016-08-31 16:37:20 +02:00
qsm-odoo c204d621bb [IMP] website_blog: use valid website snippet as default content for blog post
Adapt the default content of blog post to be a valid website snippet.
Previous content was not entirely possible to remove (there still was
a remaining .container) and was not easily customizable (user had to
remove it if he wants something great).

Note: maybe we should adapt the snippets so that they are callable with
custom content or do something like what has been done for default
content for job positions (see commit 00cfb0889b).
2016-08-31 16:37:20 +02:00
qsm-odoo 1c87f1d3bb [IMP] website(_blog): remove "Style" (blog-style) snippet option
The "bigger text" option was an useless option as redundant with the
summernote editor one.

The "narrow" option always resulted in an ugly layout with bugs in
many contexts.

Note: the styling classes are kept for compatibility for now.

+ Adapt demo data of website_blog which rely on the "narrow" option.
Use up to date snippets with reduced column width to get the same
result.
2016-08-31 16:37:20 +02:00
qsm-odoo d6f30345a3 [IMP] web_editor,website: rename "background image options" option
"Background Image Options" -> "Background Image Sizing"
2016-08-31 16:37:20 +02:00
qsm-odoo a7f7efac4c [IMP] web_editor: improve usability to select image in media dialog
Before this commit, we had to click on the image we want, then click
on save in the modal footer. Now we can also double click on the image
we want, with the same result.

Same goes for icons.
2016-08-31 16:37:20 +02:00
qsm-odoo 0659d94d7f [IMP] web_editor: open link dialog on double click on a link
(Also refactore the code so that the implementation is the same for
the media dialog opening on double click on an image).
2016-08-31 16:37:20 +02:00
qsm-odoo 323c949ec4 [IMP] web_editor: lint file rte.summernote.js 2016-08-31 16:37:20 +02:00
qsm-odoo 0305de1929 [IMP] web_editor: change tooltip for parent button in editor
"Select Container Block" -> "Select Parent Container"
2016-08-31 16:37:20 +02:00
Jeremy Kersten 80d65ab350 [IMP] website_payment: show payment method in footer
Xpath has been altered and logos displayed in right column or portal.

The pupose of these logos is to know when you arrive on the website (ecommerce)
 with which payment method you can paid.
2016-08-31 15:28:10 +02:00
Denis Vermylen (dve) 3d53a74052 [FIX] theme_*: restore category to theme
category was changed to "Website" so it'd appear under the website
category in the store, but it needs to be "Theme" otherwise it doesn't
appear in the "Choose your theme" menu after installing website.
2016-08-31 13:32:11 +02:00
Jeremy Kersten 5c0de8f00a [FIX] event: fix get_range_str and add tests
Fix format_tz call
Fix week and month computation
Add test wich tests change month and year !
2016-08-31 13:23:14 +02:00
Jeremy Kersten 7bcf255355 [FIX] payment_stripe: execute test on nightly only
Avoid runbot red with:
  ConnectionError: HTTPSConnectionPool(host=api.stripe.com, port=443):
  Max retries exceeded
2016-08-31 13:23:14 +02:00
Jeremy Kersten 7346eeb590 [REF] website_sale: tokenization - improve desgin
Update design for registered cards

@courtesy of @fhe-odoo
2016-08-31 13:23:14 +02:00
Raphael Collet e481cfce72 [FIX] base: make constraint on ir.model.fields.relation_table more robust
The constraint checks the table name with a regexp, and the latter crashes when
the field has value `False`.
2016-08-31 11:58:56 +02:00
Jeremy Kersten b717f3c4be [FIX] event - fix delta date compute
Before this commit 1st September is not Tomorrow of 31 August
2016-08-31 10:36:10 +02:00
Jeremy Kersten 890cb5dba1 [FIX] website_sale: multi-image, fix group assignation in res_config
Old code introduced an error, because every body was public user and
so the menu e.g. login appears even when you was logged in.

Courtesy of @kangol
2016-08-30 17:50:44 +02:00
Jeremy Kersten 0152f3c157 [IMP] website_sale: imprrove / refactor some templates
Make bill_to generic, and callable
Use Json synthax and not Dict synthax (even if it was compatible) fot t-field-option
Replace deprecated t-field-options by t-options
2016-08-30 17:50:44 +02:00
Jeremy Kersten 6f03ab45a8 [IMP] website_sale: allow to use payment.token to pay on eCommerce
This commit add as (sub) payment method all (owns) tokens from this acquirer.

Tested with Ogone with success
2016-08-30 17:50:44 +02:00
Simon Lejeune 742c81e1ff [FIX] project: default order of task type
Before this patch, the order of a project's task type (its columns)
were defined by a sequence. However, when you quick-create columns,
they have the same sequence value: 1 by default. This results in
weird behavior when you edit a task type (for example, by changing its
tooltips), the column is moved at the end.

By ordering by sequence and id, the behavior is more intuitive
as the colum doesn't move when you edit it.
2016-08-30 17:18:59 +02:00
Fabien Pinckaers 8999f4c04d [IMP] hr_recruitment: better stats on pivot view 2016-08-30 17:06:22 +02:00
Thibault Delavallée 02c748be59 [IMP] tools: sanitizer: add and clean sanitize options
Now having

 * sanitize: run the sanitizer to clean the html (removing javascripts,
   unwanted tags, ...)
 * sanitize_tags: only a subset of tags is allowed in html content.
   Unwelcomed tags are remove dand their content stripped.
 * sanitize_attributes: only a subset of attributes is allowed.
 * sanitize_style: only a subset of style attributes is allowed. Style
   attributes are parsed to keep only a white list.
 * strip_style: all style is removed. It bypasses sanitize_style as there
   is no need to sanitize something that is removed.
 * strip_classes: remove class attributes

Fields parameters have also been updated to match the sanitize options. Html
fields by default are sanitized with sanitize_tags activated but without any
further options. All addons have been updated to match the new options
according to their previous behavior.
2016-08-30 15:54:56 +02:00
Thibault Delavallée 97425bfe3f [REF] various: make mako mail templates more xml compliant
As we will soon improve the sanitizer we will be able to sanitize email
templates body. However this implies some cleaning in the templates to
be sure mako is not considered as invalid html / xml and therefore removed
from the template body.
2016-08-30 15:54:55 +02:00
qsm-odoo b4a159d261 [IMP] web, website(_*): use web.layout for every web page
The web modules defines a "layout" template which is only used by the
login default page. Now the backend template "web.webclient_bootstrap"
and the frontend template "website.layout" both use the "web.layout"
template as base.

Some parameters can be passed to customize the default "web.layout"
template:
- "head": content will be placed at the end of the <head> tag of the
page
- "title": to set the title of the page (the <title> tag should not be
placed "by hand")
- "x_icon": the url for the page icon
- "html_data": dictionnary whose key-value pairs will be placed as
attribute-value for the <html> tag
- "body_classname": the classname to set on the <body> tag

Note: xpath expression on the website.layout template can now only find
the #wrapwrap element and its children. An expression "//body" will not
have any result. If something has to be added in the body element but
not in the #wrapwrap element, simply change the xpath
<xpath expr="//body" position="inside"> with
<xpath expr="//div[@​id='wrapwrap']" position="after">
2016-08-30 13:57:32 +02:00
qsm-odoo a7930e51ec [MERGE] *: adapt tours to new web_tour.tour system 2016-08-30 13:54:56 +02:00
Christophe Matthieu c41e85ae12 [IMP] website_sale_options: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu dff1b6cc03 [IMP] website_sale: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 48fccec1f2 [IMP] website_hr_recruitment: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu d39fbea9ad [IMP] website_forum: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 3fe48f7f49 [IMP] website_event_sale: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 21e26f6009 [IMP] website_crm: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu ea1c061e11 [IMP] website: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 0f8f68dfa7 [IMP] web_editor: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00