Commit Graph
110699 Commits
Author SHA1 Message Date
Thibault Delavallée e79eb01a67 [MERGE] auth_signup, web, website, portal: clean signin/signup process and customer portal breadcrumb
This merge eases the signin / signup process by rellabelling / adding
options / cleaning support of auth tokens. It also improves customer
portal by cleaning the breadcrumb now using a simple bootstrap menu.
Finally people can now see their sale orders using an access token
without having to rely on website_quote.

Closes 17022.
2017-07-06 13:21:08 +02:00
Denis Vermylen 505686ea4f [IMP] website_portal,*: clean breadcrumbs
We make the breadcrumbs of the portal uniform and remove them when we
access the document with an access token without being logged in
(for sales orders).
2017-07-06 12:53:39 +02:00
Denis Vermylen 054c68689b [IMP] auth_signup: various usability improvements in signup process
* allow new signup on invalid token
 * relabel signup buttons
 * send a welcome email upon signup with a signup token.

This way, should the token somehow be usurped by someone else,
the original partner's email address will be notified.
(before the usurper can change the email)
2017-07-06 12:53:39 +02:00
Denis Vermylen 7dd6225f0b [IMP] mail, account, sale: improve sales order mail link
Mail now can handles a generic access_token in /mail/view route. Mail does
not do anything with it. Addons can override the controller and add their
specific management of this token according to some specific business
logic.

Sale order emails now contains the access token to grant access from the
notification email url without logging in. Sale portal now allow customers
to log in using an access token without having to use Online Quote. If
the user doesn't have an account yet and signup is allowed (B2C) an extra
parameter is added to the url to link the correct partner to the user upon
signup. If the user already has an account an extra parameter is added to
auto-fill the user's login if he wants to login from that session.

Account is also updated to prepare accepting access tokens. However the
complete implementation of accounting customer portal will be done in
another task coming soon.
2017-07-06 12:53:39 +02:00
Denis Vermylen e0a1549307 [IMP] models: add access_user to get_access_action
In order to be able to identify what action to return based on the
access_user.

Typically portal users will need to be redirected to the front-end,
while internal users will need to be redirected to the back-end.
2017-07-06 12:53:39 +02:00
Denis Vermylen 6977a363e4 [IMP] web, auth_signup: add signup and login values to session
When you receive an url with parameters

 * auth_signup_token: uuid
 * auth_login: login

those will be stored in the session and used

 * when the user will want to sign up in order to be linked to the right
   partner;
 * when he logs in so he's sure to log in with the right account +
   autofill is nice

This commit only adds the support, future commits will support its use.
2017-07-06 12:53:39 +02:00
Denis Vermylen 676022e3af [IMP] auth_signup: display meaningfull and translated error messages
Since 5425316eff errors when signing up will only display two
messages:

 * "Another user is already registered using this email address." or
 * "Could not create a new account."

While Odoo creates a multitude of other comprehensible error messages
such as

 * "Passwords do not match; please retype them."
 * "Signup token '%s' is no longer valid"

This commit now separate UserError and AssertionError from SignupErrors.
Those are still hidden in a general message (see 5425316eff for reasons) while
the other ones are fully displayed.

This commit also improves translations of messages.
2017-07-06 12:53:39 +02:00
Denis Vermylen 689d6d6829 [IMP] website: add signup option in website settings
This commit duplicates the General settings' User Signup options in
the Website configuration, with a clear description of the options.

We also remove the unnecessary usage of safe_eval in auth_signup's
res_config.py. As stored values are repr values of a boolean field
just comparing the string values is sufficient. There is no need to
use safe_eval as it should be used only when necessary.
2017-07-06 12:53:39 +02:00
Khoi Nguyen 5854bb7d12 [IMP] web: Add disableDrop option to dragAndDrop
In some situations, it would be desirable to be able to attempt a drag
and drop, without actually triggering the dropping action. As an
example, we would like to see whether dragging a new field in studio
ensures that a class 'o_web_studio_nearest_hook' be assigned. This can
only be tested *before* the new field is dropped.

This commit adds an optional argument 'disableDrop' to the
dragAndDrop method, and sets it by default to false. The dropping action
will then only be triggered if the aforementioned parameter is set to
false.
2017-07-06 11:50:35 +02:00
Denis Ledoux 70e1efd41e [FIX] product: non-random default variant attribute order
Before this revision, if the user did not re-order
the sequence of its attribute values manually,
the attributes in the variant name were ordered
randomly.
e.g. On the ipod, one time it could be the color before
the GB, one time the other way around.

Besides, this could lead to an issue in the pivot table,
as mentioned in the revision
834b38a84d.

However, on the contrary on what is done in the above revision,
these attributes must not be ordered on their value name,
but rather on their sequence, and if they have the same,
on their attribute, so the order is always deterministic.
2017-07-06 10:41:00 +02:00
Denis Ledoux 4613455d45 Revert "[FIX] stock : traceback pivot view for stock moves"
This reverts commit 834b38a84d. It also reverts 003328ec82
that improved the sorted.
2017-07-06 10:40:42 +02:00
Fabien Pinckaers d84657813d [IMP] website_links: reverting latest commit: auto_install 2017-07-06 09:39:32 +02:00
Fabien Pinckaers dad3055870 [IMP] website_links: no auto install 2017-07-06 09:38:20 +02:00
Fabien Pinckaers f2d492fac3 [IMP] mail: show late+today activities only in counter 2017-07-06 00:18:45 +02:00
Fabien Pinckaers 34da40a44d [IMP] acitvity filters cleaning 2017-07-05 23:32:23 +02:00
Fabien Pinckaers cfd5f47493 [IMP] base: no image (and kanban use default values 2017-07-05 22:06:41 +02:00
Fabien Pinckaers a099b4955a [IMP] account: degree of trust hidden on partner form 2017-07-05 21:49:25 +02:00
Deep Patel e9640407f4 [IMP] mail: parse note when scheduling an activity to make clickable links
Zizisse meuche iouzability.
2017-07-05 17:02:01 +02:00
Thibault Delavallée 2f6e396959 [MERGE] mail, various: add activities summary in topbar grouped by App and remaining time 2017-07-05 16:52:55 +02:00
pgu-odoo 07f1e9025d [IMP] mail: ease activities management by adding a shortcut-counter in top menu
This commit improves the use of activities through various applications
by adding a counter of activities displaying next activities grouped by
application. For each application activities are divided into late, today
and future activities in order to achieve a better management.

This commit also merges Inbox and Messaging icons in topbar to keep only
one displaying All / Chat / Channels messages.
2017-07-05 16:50:27 +02:00
qdp-odoo b9a9daca17 [FIX] account: don't show off deprecated accounts in customer invoice lines
Fix #15767
2017-07-05 16:39:05 +02:00
pgu f5c8bd30a3 [IMP] project: add a default group tasks on stage 2017-07-05 16:25:31 +02:00
pgu a1f0287325 [IMP] hr_recruitment: put a lower priority on applicant reporting search view to avoid wrong default view choice 2017-07-05 16:23:01 +02:00
Pierre Masereel d6dfdc98fb [FIX] purchase: typo in domain
There is a lost bracket in domain.

Bug intreoduced in rev: https://github.com/odoo/odoo/commit/004412749b83376221c7baec2f82718dd9bd954c
2017-07-05 15:54:37 +02:00
pgu-odoo 1142d66ecb [IMP] various: add 'Upcoming Activities' filter on various models using activities 2017-07-05 14:17:34 +02:00
Denis Ledoux 6078c04266 [IMP] models: allow to use a not automatic create_date field
Without this, you cannot use a `create_date` field
in a model with `_log_access` set to `False`
2017-07-05 13:50:15 +02:00
Denis Ledoux ad67f7aff8 [FIX] sql: Do no consider a table exists if this is a schema table/view
Before this revision, this is not possible to create a model
with a `_table` set to `domains`, for instance.
2017-07-05 13:47:29 +02:00
Pragnesh Mistry cef90a559a [REM] event: remove useless yml tests
Simply because they test nothing.
2017-07-05 13:18:10 +02:00
Joren Van Onder a287c15bc8 [IMP] account: mimic name_search in account.group tree view
Allow the user to search on a prefix of code_prefix or a substring of
name.
2017-07-05 08:12:49 +02:00
Joren Van Onder 38c055c325 [IMP] account: allow searching on code_prefix or name on account.group
Inspired by name_search on account.account. Allow the user to search
on a prefix of code_prefix or a substring of name.

Fixes #17926
2017-07-05 08:12:49 +02:00
Dhawal Limbuwala 02c251c92b [IMP] account, usability: action buttons on paid invoices
keep send by email, print invoice button visible when invoice is paid 
Was PR #16882
2017-07-04 17:25:39 +02:00
qdp-odoo 7c0822c026 [IMP] account, usability: improve search view of journal items.
* emphasize on important search criteria: on partners, accounts, journal
* search on move name is important as well but there is a menuitem dedicated for that
* search on taxes is less important
2017-07-04 17:04:53 +02:00
hch-odoo 4e593abb2f [IMP] account: Show cancel button only when account_cancel is installed
Because 'Allow Cancelling Entries' option for journals is made available only when the 'account_cancel' module is installed

Was PR #17216
2017-07-04 16:37:30 +02:00
Denis Vermylen 6f4a40ab67 [FIX] website_project: default search on tasks
set default search to 'content' as expected.
2017-07-04 15:45:31 +02:00
Denis Vermylen 232a44a31d [FIX] sale: missing variable in 'Send by email' template
doc_name was accidentally removed at 5a6f03a1ce.

Shame.
2017-07-04 15:40:54 +02:00
Haresh Shyara 2580cd635d [FIX] website_sale: Use new field name on website settings onchange 2017-07-04 14:21:02 +02:00
Kishan Gajjar aaeef14903 [IMP] web_editor, website(_*): show all snippets even if module is not installed
* mail_channel, mass_mailing, twitter, event

- t-install attribute holds the technical name of the module that
  needs to be install to use a particular snippet.

- Disable the drag & drop feature for these dummy snippets.

- Move some images to website module.

- Installed snippets display at the top of the list.

- Hide not-installed module snippets if user don't have rights to install module.
2017-07-04 10:54:20 +02:00
Khoi Nguyen 79c9f0a7a5 FIX web: clear cache after 'reload' client action
If the 'reload' action is triggered right after a view change, the
latter will only be effective if we refresh the page at the browser
level. To overcome this, we clear the cache every time the 'reload'
action is triggered.
2017-07-04 10:31:09 +02:00
Fabien Pinckaers 5a97afcce1 [FIX] scaffold: small fix in template 2017-07-03 16:33:26 +02:00
Richard Mathot c47c52bfd9 [FIX] base: fetch gravatar images only from views
Before this commit, at each partner creation (including data import,
RPC import and tests) Gravatar server was polled, slowing down partner
batch import.

We then enable this feature only where it is needed: when creating a
partner from a view.
2017-07-03 15:04:29 +02:00
qsm-odoo 42621febc1 [IMP] website_theme_install: optimize animation
Following commit 828c7c3da9:
the kanban record animation when a theme is hovered was blurry with
chrome and laggy with firefox (with linux at least). This commit
removes the scale part of the animation which was the cause of this.
2017-07-03 13:36:46 +02:00
Xavier Morel 9a07a4599c [FIX] doc warnings
* add Sphinx 1.6 compatibility (use app.set_translator when
  available as in that case programmatically setting
  html_translator_class is broken)
* fix a bunch of code block lexers to avoid warnings & get better
  coloration
* add a few options which were referred to without being actually
  defined
* fix some rST formatting
2017-07-03 11:49:03 +02:00
stefanorigano 828c7c3da9 [IMP] website_theme_install: new design
- Handle vertical screenshots
- If a theme is installed, show it first, hide buttons and use a
  specific design
- If no screenshot has been defined, show the cover (or the icon if no
  covers has been defined neither)
- Show theme's name and category
- Allow to filter by category
- Design grouped layout
2017-06-30 17:28:42 +02:00
stefanorigano 8dfc757386 [IMP] theme_bootswatch, theme_default: add screenshots 2017-06-30 17:28:42 +02:00
Martin Trigaux 198d88748e [FIX] pos_*: remaining bad manifests 2017-06-30 16:52:07 +02:00
Martin Trigaux 587b32bcca [FIX] various: badly indented manifest titles
Revealed by ec7b08d1
2017-06-30 16:26:39 +02:00
Martin Trigaux ec7b08d1ff [FIX] base: check description content
Some may say that fe346fa0 made the test fail but this is an illusion
2017-06-30 15:25:44 +02:00
Yenthe V.G fe346fa021 [REM] stock: remove duplicated module description
The proper description is in static/description

Closes #17873
Fixes #3846
2017-06-30 14:43:00 +02:00
Jérome Maes 66bd45a750 [MERGE] website_*: new website chatter
This commit brings a new frontend chatter.
The old one displayed all message on the website
page, and that could be very slow when many many
messages are posted on a document.

The new chatter is more dynamic: we introduce
a pager, to fetch and display only a few messages.
It also still support to post a message if you are
not logged in, using a token mecanism (see
website_quote).

Moreover, a better integration with rating: in the
eshop, when posting a comment, the visitor can add
a rating value (stars).
2017-06-30 11:08:31 +02:00
Jérome Maes 870b51134d [IMP] website_slide: use classical chatter
Slide provided a chatter where you can post message as
public user. We decided to drop that feature in order
to avoid spamming.
Like for all other document, you must at least, be portal
user to post a comment.
Reusing the standart chatter highly simplify the code.
2017-06-30 11:07:01 +02:00