Commit Graph
103218 Commits
Author SHA1 Message Date
Martin Trigaux 915e41b19a [FIX] website_mail_channel: number of members in channel
The members of a channel are stored in channel_partner_ids, they are no longer
a follower of the object (message_follower_ids)
2015-12-10 13:48:05 +01:00
Christophe Simonis 6ff9015ae6 [FIX] crm: Leads analysis graph view
there is no longer any graph view with as type "pivot".

Manual forward-port of 74b4f5d2ea which
has been forgotten in previous forward-port.
2015-12-10 12:27:42 +01:00
Alexandre Fayolle 9f65dad250 [FIX] stock: mutation of the context
If the method do_enter_transfer_details is called form the new API, the context
is a frozendict and can not be updated and the previous code would crash.

Copying it before updating.

Closes #9872
2015-12-10 12:25:34 +01:00
Cedric Snauwaert 088db58967 [FIX] account: when trying to reconcile an entry, if label is empty, by default it should be the name of the line
It was the case in Saas-6 and prevent many mistakes
2015-12-10 11:54:06 +01:00
Nicolas Martinelli 35a390daf1 [FIX] sale: change qty updates weight
The method `product_id_change` has become quite a mess with time as it
gathers a lot of onchanges. Therefore, previous commits were made in
order to prevent unwanted side effects, such as af07b2a0, 1cedcf6a and
136bd723.

This revision fixes the weight which was lost with commit af07b2a0.

opw-658712
2015-12-10 11:37:34 +01:00
Nicolas Martinelli 055f47ef41 [FIX] mrp: wizard
Removes unnecessary separator and newline which prevent the product
quantity to be displayed.

opw-658281
2015-12-10 10:22:36 +01:00
Cedric Snauwaert 12dad00508 [FIX] account: fix problem with round_globally method in tax calculation
When rounding globally, we should not round the tax with the currency rounding since it might introduce some errors.
Also add the field on the company view for user to change the computation method as they want.
2015-12-10 10:10:22 +01:00
Christophe Matthieu 8a0b4ca39f [FIX] website: display website_published image without access to the model
Issue: if the user don't have any access to the model, _image method raise an exception instead of display the website_published images.
2015-12-10 10:02:37 +01:00
Daniel Dico d8e5cdec7d [FIX] fix various Lucida misspellings
closes #9997
2015-12-10 09:55:22 +01:00
Christophe Matthieu 2e074cb305 [FIX] web_editor: don't display translation modal for attribute on tag who have content 2015-12-10 09:10:29 +01:00
Christophe Matthieu 5257721bef [FIX] web_editor: translation feature for all string fields on website
* add the branding in translation mode
* change javascript to add the lang in the context (automatically removed in the rte => allow to create record and edit when use an other default language of en_US)
* avoid double saved
2015-12-10 09:10:29 +01:00
Christophe Matthieu a93bd0fb68 [FIX] website_sale: active text translation for product description
If translate=True AND if sanitize=True (By default sanitize=True) the html field use automatically html_translate method.
2015-12-10 09:10:29 +01:00
Christophe Matthieu e86372c504 [FIX] website_blog: active text translation for blog content
If translate=True AND if sanitize=True (By default sanitize=True) the html field use automatically html_translate method.
2015-12-10 09:10:28 +01:00
Denis Ledoux 3e6f7c1e15 [FIX] calendar: user multiple times in event attendees
When creating a new event,
with just you as attendee,
then edit again the event and add someone else,
the user is twice in the attendee of the event.

This reverts the part done in `calendar.py` of revision 8483ca5

Even when you create an event for a job interview,
this is not mandatory to set yourself as attendee.
You can maybe be added by default, but you cannot
force the user to be set as an attendee of the event.

e.g. An HR officer can schedule a meeting for a job interview,
with the department manager and the job applicant alone, without
himself, thus.

opw-658528
2015-12-09 18:48:41 +01:00
Atchuthan 25b56671c1 [CLA] update Sodexis corporate cla
Closes #9614
2015-12-09 17:45:32 +01:00
Davide Corio eb7477989d [CLA] Abstract signs the corporate CLA
Closes #9435
2015-12-09 17:44:31 +01:00
Luis Felipe Mileo 3184925bf8 [CLA] KMEE signs the coprporate CLA
Closes #9933
2015-12-09 17:44:31 +01:00
Frédéric Garbely ff2910f8f2 [FIX] ir_translation: prevent overwrite propagation
Once set for the loading of terms for a lang,
the flag `overwrite` was propagated to all
other following languages, even if not actually needed.

Use case:
 - Installed languages: en_US, de, fr_CH, it
 - Update of the `sale` module
 - In `load_module_terms`, the system iterates through the languages:
   1. en_US: No problem
   2. de: No problem
   3. fr_CH: The flag `overwrite` is set to `True`,
      because the sub-language `fr_CH` should overwrite the `fr` terms
   4. it: The flag is still set to `True`, because of the previous iteration,
      while it must not.

opw-654042
2015-12-09 17:24:15 +01:00
Pascal Zenklusen 22d0592c9a [CLA] add corporate signature for brain-tec 2015-12-09 17:24:15 +01:00
Jeremy Kersten 800ae13712 [FIX] base: override default int converter from werkzeug
Default IntConverter (as well as Float, ...) doesn't support
negative value by default with werkzeug.

http://werkzeug.pocoo.org/docs/0.11/routing/
2015-12-09 17:01:22 +01:00
Denis Ledoux 02174099e2 [FIX] gamification: goal definition for models without inherits
When attempting to define a goal
using a model that does not have any `inherits`
- which happens most the time-,
it was not possible to choose the
`Field to Sum` and the `Date Field`,
due to the domain set in the view
which is no longer working in 9.0.

The domain is no longer working because:
 - The onchange result for a one2many for which
 the value is set to `[(6, 0, [])]` is now `[]`,
 while, in 8.0, the tuple with the command `6` and the empty
 list was preserved
 - the empty list `model_inherited_model_ids` is considered as `True` by py.js,
  and therefore it fallbacks to `model_inherited_model_ids[0]`, but
  as this is an empty list, it crashes.

The solution proposed in this revision solves the issue, while
making the domain applied on these fields less fragile.

opw-658892
2015-12-09 16:39:24 +01:00
Jeremy Kersten 97b5e52a1a [FIX] base: override default int converter from werkzeug
This reverts commit c01c10c4bd.
2015-12-09 16:22:07 +01:00
Martin Trigaux e029724403 [FIX] web_calendar: safer evaluation of color filters
In some loading cases, the all_filters may not be loaded yet so fail at the evaluation.
Making it safer and check the content.
opw 659052
2015-12-09 16:11:00 +01:00
Jeremy Kersten c01c10c4bd [FIX] base: override default int converter from werkzeug
Default IntConverter (as well as Float, ...) doesn't support
negative value by default with werkzeug.

http://werkzeug.pocoo.org/docs/0.11/routing/
2015-12-09 15:42:04 +01:00
Cedric Snauwaert 5fd3a0446b [FIX] mail: remove classes from short_body and body likewise 2015-12-09 15:24:34 +01:00
Joren Van Onder 184471dbf1 [IMP] point_of_sale: add hw_blackbox_be to posbox image
This removes server_wide_modules from odoo.conf entirely because it
wasn't actually used.
2015-12-09 14:52:10 +01:00
Joren Van Onder 2bc5d8b32e [ADD] hw_blackbox_be: implements the Belgian blackbox protocol
To be used together with the pos_blackbox_be module.

The protocol specification is available in:
http://www.minfin.fgov.be/portail2/fr/current/spokesperson-12-06-05.htm
2015-12-09 14:52:10 +01:00
Goffin Simon 5d32755548 [FIX] analytic, sale: timesheet access rights
A user with employee rights should be able to create a timesheet line.

opw:658083
2015-12-09 14:44:33 +01:00
Denis Ledoux 33e759fa0d [FIX] auth_signup: context is none
Regression introduced in aae980b458

When attempting to use the context,
always check that it is set first.

It was no longer possible to reset a password from the login form

opw-659017
2015-12-09 14:17:18 +01:00
Géry Debongnie 2d54310096 [FIX] mail: use correct formview on redirection
this prevents the following problem: clicking on a message generated by
an opportunity in discuss leads to the lead form view.
2015-12-09 14:00:56 +01:00
Olivier Dony 8955363808 [FIX] web: /web/image - backwards-compatibility
The QWeb image widget allows passing either
max_width, max_height or both, but the
controller required both.
We'll consider a 0px dimension request as
meaning: "appropriate value according to ratio".
2015-12-09 13:45:00 +01:00
Jeremy Kersten 96d316fdf4 [FIX] website_sale: recompute fiscal position at checkout
Method refactored by commit 94716a3 and 198164d
2015-12-09 13:38:55 +01:00
Cedric Snauwaert c867927b2e [FIX] mail: sanitize incoming mail to remove unwanted class + add test
some incoming mail containing class like "fa-spin" or "modal in" have an unwanted behavior in Odoo, incoming mail should not have
special classes, so we remove all the class that are not in the whitelist.
2015-12-09 13:34:30 +01:00
Nicolas Martinelli afa28f075a [FIX] website_quote: message if SO not confirmed
Commit 486cd3309 was not correctly forward ported. We also add a
specific message if the quotation is in state 'draft'.

Fixes #9226
2015-12-09 11:35:14 +01:00
Aaron Bohy ad14862907 [FIX] mail: various ui improvements/fixes
- display full content of messages in Discuss
- no content helpers in inbox and starred improved
- mark as read tooltip instead of mark ad done
- decrease font size in chat windows
- increase chat windows dimensions
- display avatars in chat windows
- chat window background is now white
- notes are displayed with a darker background
2015-12-09 11:20:25 +01:00
Géry Debongnie bff2fcde3c [FIX] mail: correctly handle message on star/unread updates 2015-12-09 11:20:21 +01:00
Aaron Bohy 6cf8ebab3d [FIX] mail: escape user and channel names to prevent xss
However, users shouldn't be allowed to have xss in their name, imo.
2015-12-09 11:16:24 +01:00
Aaron Bohy 085f6e0e68 [FIX] mail: multiple clicks on navbar needactions icon
Clicking on this icon redirects to the client action (for now at least). By
quickly clicking several times on it, we try to restore the scroll position of
a channel that not yet exists. This rev. prevents from getting a traceback in
that case.
2015-12-09 11:16:24 +01:00
Joren Van Onder 6e945de681 [FIX] point_of_sale: don't error when splitting an order
4b003afd0a made it so that the constructor
of an orderline calls set_quantity(). The issue is that this function
first asserts that the order is editable. pos_restaurant uses the
clone() of orderline when splitting an order, and this method did not
set order, leading to an error.

This fixes the issue by temporarily cloning the order reference, and
then setting it back to null. It's not the cleanest fix, but seeing as
how the clone() method is only used in one place this will have to do
for now.
2015-12-09 10:33:15 +01:00
Thibault Delavallée da2b88bbbe [FIX] sale and others: email_from of templates 2015-12-09 09:59:04 +01:00
Thibault Delavallée f7c0480dc1 [FIX] mail: fix 504227cca9
Do not restrict followers-based alias to members of non public channels.
Otherwise you may have issues defining a public mailing list with a
subscription step. People still wouldn't be able to post on a public
channel using a restricted alias.
2015-12-09 09:59:04 +01:00
Thibault Delavallée b783e25a1d [FIX] mail: template signature duplicated
When using a template adding the signature, do not re-add it when posting
the message on a document. For example the Sale Order - Send by Email
templates generated two signature in the email.

This issue has been introduced when migrating mail to the new API.
2015-12-09 09:59:03 +01:00
Nicolas Martinelli 07425d407f [FIX] mail: replace special characters
When the delimiter '@' is used in the composer, a regular expression is
built in order to suggest followers. However, if this regular expression
is incorrect, it causes a crash since RegExp will throw a syntax error.
Since a new regular expression is built for each new character the user
types, this situation can occur very easily. For example, typing '@('
will cause a crash.

This fix replaces characters which may easily lead to a syntax error by
a space.
2015-12-09 09:36:41 +01:00
Goffin Simon c4fb2c2efc [FIX] account: Test product_id_change
Test that when an included tax is mapped by a fiscal position, the
included tax must be subtracted to the price of the product.
Inspired from 503820acb6
2015-12-09 09:13:44 +01:00
Antonio Espinosa 6cdcdb8724 [FIX] web: datejs Spanish long format
From:  miércoles, 04' 4e 'noviembre' 4e '2015 10:48:19
To:    miércoles, 04 de noviembre de 2015 10:48:19

Closes #9910
2015-12-09 08:56:00 +01:00
Martin Trigaux 623fbf58f0 [FIX] doc: installation of v9 2015-12-09 08:40:14 +01:00
Jeremy Kersten b9e64d7732 [FIX] website: fix edit master when using old template
When no update has been done on website, we don't have this default-lang
data/attribute. So we use an hack to find the default lang which one is
the shortest because no lang is present in the url.
2015-12-08 23:38:19 +01:00
Jeremy Kersten a46b5ce344 [FIX] website_blog: fix default opacity on next blog 2015-12-08 19:34:25 +01:00
Christophe Simonis c710d73331 [FIX] account: correct method call.
Method expect a recordset.
2015-12-08 17:05:02 +01:00
Denis Ledoux faebdad417 [FIX] point_of_sale: remove fullscreen
Most occurences of the fullscreen feature have
been removed in the below revision:
eebdbb677fdee1163c16ec2bb967f37e1e4b69e

Only the field has been left.

This isn't allowed to go fullscreen
without a direct user click
by most browsers, for security
purposes.

opw-658838
2015-12-08 16:48:07 +01:00