Commit Graph
104997 Commits
Author SHA1 Message Date
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
Christophe Matthieu 4ba425583e [IMP] survey: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Christophe Matthieu 427bc242fb [IMP] point_of_sale: convert tours to use web_tour.tour 2016-08-30 13:54:28 +02:00
Yannick Tivisse 6c4163967c [IMP] sale: Improve the onboarding and clean the views 2016-08-30 13:23:10 +02:00
Yannick Tivisse 61c2867e39 [IMP] sale: reorganise res config settings 2016-08-30 13:20:23 +02:00
Yannick Tivisse 58eb07782d [IMP] sale: typo 'Sale Order/Report' -> 'Sales Order/Report' 2016-08-30 13:20:23 +02:00
Yannick Tivisse 4b60d5c1bd [IMP] account,sale,purchase: typo 'Payment Term' -> 'Payment Terms' 2016-08-30 13:20:23 +02:00
Yannick Tivisse 8c08a9be10 [IMP] sale,account: Various UX improvements and cleanings for onboarding purpose
SPECIFICATION:
==============

- hide income account in invoicing wizard (if user is not a accounting accountant at least)
- hide Inventory tab in products form if no access to Inventory app
- in internal category form, hide accounts if user is not an accounting accountant
- hide Vendors if no access to purchase (as well as Description for Vendors in Notes)
- remove Warranty or hide it with related access rights
- tax cloud config is not userfriendly (product form, what is TIC category? what does it imply?)
- rename Accounting tab (in products) into "Invoicing" and move Invoicing Policy and Taxcloud Config there. Make tax field visible for sales
- reset Internal notes field on product (under Notes). Used by many companies and useful for search on website.
- invoice: validate button should be for billing users only
- a sales user can't see Configuration menu (with salesteams)
- a sales user should not see Invoicing report link &nd settings link in salesteam dashboard
- a sales user should not see the field for invoicing target in dashboard (in invoicing if activated for salesteam)
- In sales team, quotations and invoices should be only one option -> that way invoicing fields & targets show up to the admin
- SO status: sale order -> Sales Order
- Everywhere: Payment Term -> Payment Terms
2016-08-30 13:20:23 +02:00
Yannick Tivisse e945b86d5a [IMP] product: Move Inventory tab in product form to stock module
By the way, move the group 'Vendors' on the inventory tab, it doesn't. It
doesn't make sense to display this information if you don't actually buy
the product
2016-08-30 13:20:23 +02:00
Damien Bouvy 63c4854841 [FIX] base: raise an actual exception and not a string 2016-08-30 10:58:52 +02:00
qsm-odoo fba51f1cbd [FIX] web_tour: correct automatic click on links
Previous implementation was checking if the element we want to click
on is a link and if this is the case, only forced a redirection. This
had been done because the redirection was not working by simulating a
click, but in fact it works, the click simulation only had to be
improved.

Also, only forcing a redirection is wrong as some links have both a
real redirection link and a event handler binded to them.
2016-08-30 10:16:40 +02:00
Jainik Patel 531ed05a43 [IMP] account: add bank statement operation presets as template in l10n modules.
In details:
* account.operation.template object renamed into account.reconcile.model
* account.reconcile.model.template object created
* added some records for l10n_be

Was PR 11230
2016-08-30 09:55:24 +02:00
qdp-odoo a267d8205b [FIX] account: fix account_reconciliation_widget when a tax is used. compute_all() now expects browse_records as parameters 2016-08-29 18:03:05 +02:00
Raphael Collet b30bc58627 [FIX] account_budget: remove print statement 2016-08-29 16:19:23 +02:00
Christophe Matthieu 6d45450520 [IMP] website_sale: better performances 2016-08-29 15:33:05 +02:00
Christophe Matthieu 688db44c42 [IMP] website_sale: improve performance, use less db request to have pricelist data
Use pricelist in the context instead of pricelist id.
2016-08-29 15:32:44 +02:00
Christophe Matthieu 50890347c1 [IMP] website: increase in performance using the cache
Avoid the excessive use of with_context method
2016-08-29 15:32:44 +02:00
Christophe Matthieu 8285ff7012 [IMP] website_sale: use env with new context for performance
The products don't need to use with_context because the pricelist and partner is already in the context; this change allow to use the cache.
2016-08-29 15:32:43 +02:00
Christophe Matthieu 166a9d26e3 [IMP] website_sale: create a new compute field to use prefetching and increase performance 2016-08-29 15:31:44 +02:00
Raphael Collet 83042027fe Revert "[FIX] website: add missing module dependency base_setup"
This reverts commit d269eb0eb6.
The issue has been fixed in 61f2c90d50.
2016-08-29 09:57:21 +02:00
Raphael Collet d269eb0eb6 [FIX] website: add missing module dependency base_setup 2016-08-29 09:49:23 +02:00
Nicolas Martinelli 61f2c90d50 [FIX] website: Google Maps API Key
Move the key field to the website config
2016-08-29 08:32:12 +02:00