Commit Graph
110836 Commits
Author SHA1 Message Date
Ankit Sathvara 0c1941ab15 [IMP] sale,account,pos: Improve label on config to active currencies
PURPOSE
=======

Simplify the way to activate currencies

SPECIFICATION
=============

On res.company :

Currency_id: options={‘no_open’: True}
oe_edit_only on “Activate more currencies”

In the list view of the currencies, replace the checkbox active by a boolean_toogle widger

There is normally a default filter on the currencies list view to only show the active currencies : this filter should be kept except if you arrive on this screen by clicking on "Activate more currencies"  from the res.company and from the settings. Only the menuitem Currencies should only show the active ones
2017-07-07 16:18:23 +02:00
Ankit Sathvara f41bd82f66 [ADD] web: Add new widget to toogle a boolean with a slider
Purpose
=======

Currently, it's not possible to activate a boolean on a non-editable list view without adding 2 buttons linked to a python method. These buttons aren't aligned and the result is not pretty.

This commit adds a new widget that allows to toggle a boolean record by record by clicking on the slider.
2017-07-07 16:18:23 +02:00
rmu-odoo c9f0352ac6 [IMP] account: Improve display and etup for bank accounts and journals
Purpose
=======

No way to fully set up a bank account from current form
Must go to journal form to simply apply bank sync, etc. Users cannot figure this out themselves, this is too much complicated

Also the meaning of Manual, Electronic, etc is not clear. What does it do? Field and options to rename or to explain very clearly in tooltip

Specification
=============

- Add some useful fields on the bank accounts form view to configure it completely
- Add tooltips on some selection fields to explain the meaning of each selection
- Reorganize fields in groups to be more structured
- Improve the field display for account journals that are used in pos
2017-07-07 15:50:48 +02:00
Richard Mathot 4ccd54ccc1 [FIX] account: typo introduced by fwport bf51fe55a1 2017-07-07 15:04:00 +02:00
Christophe Simonis bf51fe55a1 [MERGE] forward port branch saas-16 up to 0f2b2c4e2b 2017-07-07 14:30:30 +02:00
Christophe Simonis 0f2b2c4e2b [MERGE] forward port branch saas-15 up to 514a1a76d8 2017-07-07 14:18:07 +02:00
Christophe Simonis 514a1a76d8 [MERGE] forward port branch saas-14 up to 5b28570769 2017-07-07 14:14:55 +02:00
Christophe Simonis 5b28570769 [MERGE] forward port branch 10.0 up to aef7748845 2017-07-07 14:13:07 +02:00
Christophe Simonis aef7748845 [MERGE] forward port branch saas-11 up to 96fa86779b 2017-07-07 14:07:47 +02:00
Christophe Simonis 96fa86779b [MERGE] forward port branch 9.0 up to 9cc799f511 2017-07-07 14:00:39 +02:00
Christophe Simonis 9cc799f511 [MERGE] forward port branch saas-6 up to 9a79b7b818 2017-07-07 13:59:13 +02:00
Christophe Simonis 9a79b7b818 [MERGE] forward port branch 8.0 up to 63ad8b9597 2017-07-07 13:56:47 +02:00
Martin Geubelle 5241d479b2 [FIX] *: add color option on m2m_tags widgets in kanban
There is a bit of magic in the kanban with many2many: the widget many2many_tags
is automatically set on many2many fields.

Since the previous commit, the `color_field` needs to be explicitly stated
in the options for the tags to be colored.

In kanban views where tags were previously colored, we thus have specified the
widget and the color option.
2017-07-07 13:40:50 +02:00
Martin Geubelle a29f7f671b [FIX] *: explicit color_field attribute for m2m_tags
Since the previous commit, the `color_field` needs to be explicitly stated
in the options for the tags to be colored.

The previous behaviour (always read the field `color`) was leading to server
warnings if the field was not present on the comodel.

Thìs commit set the `color_field´ for every many2many_tags on fields that have
a `color` field on the comodel.
2017-07-07 13:40:50 +02:00
Martin Geubelle e26ccdd0b6 [FIX] web: explicit color attribute for m2m_tags
Before this fix, the field 'color' was hardcoded in the m2m_tags widget,
which means that:
 - one couldn't specify another field (problem for custom models, with x_...)
 - if the related model didn't have the field 'color', a warning was raised
   by the server

Now, the color attribute needs to be specified on the widget options if one
wants to display colored tags.

If the color is not specified, the tags will be displayed in grey.
2017-07-07 13:40:36 +02:00
Richard Mathot bf32940142 [FIX] sale: non-admin users may not have read access on ir_config_parameters
Before this commit, this line prevented users to open their sales
orders.
2017-07-07 12:43:57 +02:00
Yannick Tivisse 15aa164eaf [FIX] account: Fix forward-port mismatch on res_config.py 2017-07-07 11:38:16 +02:00
Deep Patel b8ca0c6985 [IMP] sales_team : assign the Sales channel on salesmen creation
Purpose
=======

When a new sales user is created, user is not in any team. The dashboard doesn't make any sense and he wouldn't know how to start working

Specification
=============

On salesman creation, the user should be assign to a Sales channel IF there is only one sales team of this type.
2017-07-07 10:13:02 +02:00
Richard Mathot 63ad8b9597 [FIX] tools: prevent crashes with Pillow >= 4.2.0
From Pillow 4.2, it is forbidden to save RGBA images as JPEG
( https://github.com/python-pillow/Pillow/commit/e4d6223c944cf44c468cc65a560b94dfcf351a62 )

A crash was occurring when loading demo JPGs as
image_resize_and_sharpen() was silently changing image mode to RGBA.
Now we ensure that we return the original image mode.

We also avoid crashes when converting from PNG to JPG
2017-07-07 10:11:40 +02:00
Raphael Collet a1f1f85be2 [FIX] workflow: insertion of duplicates in many2many relation 2017-07-07 09:47:04 +02:00
Christophe Monniez c1e154bee1 [FIX] tools: ensure xlsx worksheet names are valid
When xlsx is used, the worksheet name may be longer than 31 chars and
raise an exception.

This fix will troncate the name up to 31 chars and will remove invalid
chars.

Similar patch was already done at 0122c05eff for xlwt

xlsxwriter 0.9.8 has added a parameter worksheet_class=None so adding **kw to be
compatible with installs with the latest version (requirements.txt asks for
version 0.9.3)

Closes #18077
opw-751157
2017-07-07 09:44:09 +02:00
qdp-odoo 1fda216887 [FIX] l10n_fr_certification: set auto_install to False
Due to recent decision by the French government this might not be mandatory for french companies
2017-07-06 17:01:33 +02:00
pashute 2454dce7c5 [CLA] signature for pashute
Done at #18082
2017-07-06 17:01:24 +02:00
Yannick Tivisse afefa1b771 [FIX] account: Display the correct records on 'Invoice' button
Currently it shows all the invoices, not the sales invoices that are paid or validated
2017-07-06 16:47:40 +02:00
Yannick Tivisse 1f277a3572 [FIX] account: Bring back the 'Invoice' stat button on partner form
It has accidentally disappeared in saas-15.
2017-07-06 16:17:23 +02:00
Olivier Dony 464fe4a185 [FIX] doc: clarify: record[field] is valid/recommended 2017-07-06 15:58:47 +02:00
Géry Debongnie 56dae80994 [FIX] web: prevent crash with invisible x2m and onchanges
When an invisible x2many field is modified by an onchange, we had a
crash because the reset function did not return a deferred in that case.

This happens because the signature of _render in AbstractField allow for
an undefined return value, but the reset method should return a
deferred.

This was an issue for example in stock: editing the
pack_operation_product_ids one2many field in a stock.picking could
trigger an onchange on another invisible one2many (with no inline views).
2017-07-06 15:04:04 +02:00
Miku Laitinen 53762814d8 [CLA] updated CCLA for avoinsystems
Done at #18068
2017-07-06 14:49:06 +02:00
Yannick Tivisse 5e908b0b17 Revert "[IMP] base: Only show uninstalled languages on install wizard"
This reverts commit 1e2e55872f.

In debug mode, there's a checkbox to reload the language and overwrite the existing terms. This previous commit makes that use case impossible.
2017-07-06 14:22:16 +02:00
Yannick Tivisse 89d5fadc20 [IMP] base: Reload the webclient on language install
PURPOSE
=======

When I install a language, I shouldn't have to refresh the page to see the newly installed language.

Example : I install a language, then click on my user (upper right corner) and try to select this language. The newly installed language is not available. I first need to reload my page.
2017-07-06 14:12:49 +02:00
Yannick Tivisse 1e2e55872f [IMP] base: Only show uninstalled languages on install wizard 2017-07-06 14:12:49 +02:00
Christophe Simonis 7dc731db83 [MERGE] forward port branch saas-15 up to 1f16d34aaa 2017-07-06 13:54:22 +02:00
Christophe Simonis 1f16d34aaa [MERGE] forward port branch saas-14 up to 5009752dcf 2017-07-06 13:53:17 +02:00
Nicolas Lempereur 1927654977 [FIX] web_editor: typo locale lost promise 7cb865f
There was a lost promise which made website_form loaded before the
languages informations (such as date format) was loaded.

The server expect the format of the client thus that could lead to wrong
or invalid dates.

opw-749544
closes #18074
2017-07-06 13:25:57 +02:00
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
Christophe Simonis 5009752dcf [MERGE] forward port branch 10.0 up to 1206cc3f7d 2017-07-06 13:05:24 +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
Christophe Simonis 1206cc3f7d [MERGE] forward port branch saas-11 up to 5f7f3209e0 2017-07-06 12:30:51 +02:00
Christophe Simonis 5f7f3209e0 [MERGE] forward port branch 9.0 up to 2b06da6ed0 2017-07-06 12:10:12 +02:00
Christophe Simonis 2b06da6ed0 [MERGE] forward port branch saas-6 up to 63944d30ba 2017-07-06 12:09:30 +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
Christophe Simonis 63944d30ba [MERGE] forward port branch 8.0 up to fe73fc442c 2017-07-06 11:44:26 +02:00
Christophe Simonis fe73fc442c [FIX] google_drive: avoid AccessError when reading filters
If a config use a private filter, others users can't read it due to
record rules on filters.
2017-07-06 11:37:19 +02:00
Nicolas Lempereur 52f268d042 [FIX] website: load momentjs locale in frontend
It is for example useful in the form builder with date-kind form field,
the translation of momentjs is done in french.

opw-707986
opw-749544
closes #17103
2017-07-06 11:28:57 +02:00