Commit Graph
100497 Commits
Author SHA1 Message Date
Nicolas Lempereur b55e29ea86 [FIX] web: improve focus/blur one2many dataset
The dataset of an x2m could be set as changed on a focus event, but if
the form is currently not in editing, it could stay blocked in this
state.

This commit add a check so blur and focus on x2m are better coupled.

opw-665401
2016-01-27 12:05:54 +01:00
Christophe Simonis 33844226aa [FIX] website_slides: handle invalid youtube URL.
Also update demo data to point to an available youtube video.
2016-01-27 11:55:09 +01:00
Denis Ledoux 2547b4233a [FIX] website_forum: a partner can have multiple users.
A partner can be associated to multiple users.

The condition checking the partner
user has enough karma should therefore
handle it. The previous condition expected
a singleton (only one user for the partner).

With the condition before this revision,
a partner with multiple users could
simply not post new questions on the forum.

opw-667894
2016-01-27 10:57:11 +01:00
Géry Debongnie f91ff84e97 [FIX] mail: tag some rpcs with 'shadow' to improve experience
The default behavior of session.rpc is to block the ui if it is not
completed in some short delay.  This is not really good for various
types of rpcs.  The discuss application is actually doing quite a lot
under the hood, and blocking the ui for some of those use cases does not
make sense (exemple: marking a channel as seen)
2016-01-27 10:57:56 +01:00
qdp-odoo 33bfc32111 [FIX] account: aged partner balance fixed. Work at a given date, in case of partial reconciliation, fixed totals too 2016-01-27 01:51:32 +01:00
qdp-odoo 2f969182c3 [ADD] account_extra_reports: 2 reports from saas6 rehabilitated (sale/purchase journal printing and partner ledger) 2016-01-27 01:51:32 +01:00
Christophe Simonis 2ebdb5f36e [FIX] fields: correct related_sudo computation.
Correctly merge commit 748a719fd9 in 9.0
2016-01-26 19:46:55 +01:00
Christophe Simonis 2ce9311cfe [MERGE] forward port of branch saas-6 up to a576f2b 2016-01-26 19:13:41 +01:00
Christophe Simonis a576f2baf3 [MERGE] forward port of branch 8.0 up to 43a4ffe 2016-01-26 18:20:11 +01:00
Christophe Simonis 43a4ffe6b6 [MERGE] forward port of branch 7.0 up to 098c084 2016-01-26 18:09:05 +01:00
Nicolas Lempereur e95b01db3e [IMP] web_graph: XLS export fail if more than 256 columns
When creating a XLS file with more than 256 columns, the library used
(xlwt) fail since it is targetted to support MS Excel 97 up to
Excel 2003.

But Odoo doesn't has no check and in this given instance (an error
happening in a controller generating a binary filte) the real error
message is lost.

This commit check if the to-be exported data has more than 256 columns,
and if this is the case display an error message without even trying
the export.

closes #10630

opw-660474
2016-01-26 17:38:52 +01:00
Yuriy A. Apollov 098c084eae [FIX] orm: iteration on browse_null object lasts forever 2016-01-26 17:34:39 +01:00
Stefan Rijnhart 014a1294b2 [FIX] Context argument may be immutable 2016-01-26 17:18:35 +01:00
Raphael Collet 7d80cb8790 Merge pull request #9919 from andreparames/patch-2
[FIX] Wizard is preventing the user deletion
2016-01-26 16:48:12 +01:00
andreparames 1cd9c01b42 [FIX] Wizard is preventing the user deletion
When deleting users which have recently had their password changed, the reference from the password change wizard throws a validation error.
2016-01-26 15:01:01 +00:00
Raphael Collet d0c18d7a85 Merge pull request #10228 from hbrunn/8.0-search_computed_in_path_odoo
[FIX] search with computed fields in path
2016-01-26 15:59:01 +01:00
Martin Geubelle fe10ceebdc [ADD] doc: from community to enterprise 2016-01-26 15:11:41 +01:00
Géry Debongnie 06e583e1fd [FIX] web: change qweb to work around phantomjs bug
This commit does not actually fix qweb2.js, but it works around a
phantomjs bug.  The problem with phantomjs is that in some situations,
the xmlhttprequests are dropped with a status 0.  It is most likely
related to the issue:

    https://github.com/ariya/phantomjs/issues/11195

In our testing framework, it seems to appear when requests sent before
the 'load' event of phantomjs are received after, and also when those
requests are listened with the onreadystatechange handler.

The bug does not appear if we use addEventListener with the 'load' event (at
least, not for a few builds)

This commit does not worsen qweb, and it is also a small improvement in
style (in my opinion).
2016-01-26 14:22:56 +01:00
Géry Debongnie 31efb0c198 [FIX] web_kanban: only move columns with the header
and not the whole column.  this will prevent unwanted drag and drop
operations.
2016-01-26 14:19:03 +01:00
Holger Brunn 6fd57c2188 [FIX] allow searching for new style function
fields in a search path
2016-01-26 14:15:22 +01:00
Christophe Simonis 50b0b075a9 [MERGE] forward port of branch 8.0 up to ab245fc 2016-01-26 14:04:55 +01:00
Nicolas Lempereur c23be8917c [IMP] point_of_sale: limit categories height to 60%
When categories on the point of sale take too much height, the product
and overflown categories are not visible.

In those instance Odoo wizards would usually:

- use an option to have small categories without pictures,

- have a category "all" with all the product,

- do a custom change to reduce the size of categories or add a scrollbar

This commit add the last customization in stable.

If the category block is bigger than 60% of the page height, the
categories are cropped and a scrollbar is added.

closes #10588

opw-660383
2016-01-26 13:26:53 +01:00
Damien Bouvy 84573fe50b [FIX] website_sale: do not force send the quotation in case of payment error
This could allow a malicious flow that made the quotation available
via the website_quote module; allowing you to sign and confirm the
order without actually paying it.
2016-01-26 13:18:45 +01:00
Aaron Bohy 1c4d888e80 [FIX] crm: translation of action's name 'Your pipeline'
... displayed in the breadcrumb. Term wasn't translated due to missing context.

opw-666577
2016-01-26 11:13:48 +01:00
Denis Ledoux ab245fcaa2 [FIX] stock_account: stock valuation at date total
When performing a stock valuation at date,
the stock valuation total wasn't equal
to the sum of each line of the report.

This is because the domain forcing the
date wasn't passed to the `search` call
when no group by was applied.

Indeed, when calling
`read_group` with a group by, the lines in the results
contains the domain used for each line, but when
there is no group by applied, this is not the case, the domain
is not included in the line dict returned by `read_group`.

In such a case, therefore, we must use the domain that was passed to
the `read_group` call.

opw-667761
2016-01-25 18:29:28 +01:00
Nicolas Martinelli abc5f3a51e [I18N] mail: missing translations
opw-666577
2016-01-25 17:55:44 +01:00
Nicolas Martinelli ffec0641a9 [I18N] hr_equipment: translation of category_id
Commit a4869fce fixes the view, but this also requires an update of the
.pot file.

opw-666577
2016-01-25 17:55:43 +01:00
Nicolas Martinelli faf781c550 [FIX] web_calendar: title of dialog
The title of the parent is located in the "title" field.

opw-666577
2016-01-25 17:55:43 +01:00
Nicolas Martinelli b22a22f811 [FIX] web: translation in pivot view
The definition of "total" as a global variable is done too soon in the
JS. Depending on the order in which the JS modules are loaded, it is
very unlikely that the translations are already loaded at that moment.

opw-666577
2016-01-25 17:55:43 +01:00
Nicolas Martinelli f46298bfe0 [FIX] web: missing translation
opw-666577
2016-01-25 17:55:43 +01:00
Nicolas Martinelli e93ed5dfae [FIX] many: missing translations for types of barcode rule 2016-01-25 17:55:43 +01:00
Damien Bouvy 2a4e3d8f2f [FIX] mail: update notification should update enterprise code
This allows linking databases to contracts in the central
contract registry, and automatically updating local databases,
simplifying the registration procedure for users.

Closes #10323
2016-01-25 17:34:13 +01:00
pvy 02d52fe7fc [IMP] account: add the possibility to filter by a reconciliation date in the _query_get() method 2016-01-25 16:21:28 +01:00
Aaron Bohy 16a3a4b7fe [FIX] im_livechat,mail: various livechat fixes
- prevent concurrent opening of the chat window
- take into account the placeholder value of the livechat session record
- don't send welcome message if empty
2016-01-25 15:47:25 +01:00
Aaron Bohy fc42880da2 [FIX] mail: restrict mention suggestions to channel members
Problem is that when someone is mentionned in a channel he doesn't belong to
(public, private or DM whatever), the message only appears in its Inbox and
he can't know where it comes from nor reply. This is thus very confusing.

With this rev., in Discuss, one can only mention members of the channels.
In the chatter, anyone can be mentionned like before, as when the message
arrives in the Inbox, there is a link to the associated document.
2016-01-25 15:46:56 +01:00
Aaron Bohy da2cbae8f8 [FIX] mail: synchronize last_message_seen_id between tabs
When using multi tabs or browsers, the 'New messages' separator in threads was
sometimes wrongly displayed (displayed over messages already seen in another
tab or browser).
2016-01-25 15:46:56 +01:00
Aaron Bohy 6cc8d32d60 [FIX] mail: automatically consider messages sent as read
Problem was that since rev. 617968c61, we consider sent messages as read client
side. This has been done to avoid to indicate that a channel has unread
messages e.g. when this channel is a follower of a chatter in which we wrote
a message.

This change has as consequence that we don't perform the 'channel_seen' RPC for
messages sent. At each refresh, the server sends information about pinned
channels, especially the unread counter, which was thus sometimes incorrect.

This rev. simply doesn't take messages we wrote into account when computing
the message_unread_counter field.

Also correctly display the 'New messages' separator in threads, by automatically
skipping messages we wrote (i.e. it is now displayed above the first message m
with m.id > last_message_seen_id and such that we aren't the author of m).
2016-01-25 15:46:55 +01:00
Aaron Bohy f35b48aa90 [FIX] mail: don't erase textarea's content on 'New message' click
Also mute the 'New message' button when the composer is open as the only
primary action should be to send the message.
2016-01-25 15:46:55 +01:00
Aaron Bohy 302885b860 [FIX] mail: various ui fixes
- limit partner search to 10 in new message's chat window to prevent overflow
- prevent negative needaction counters (may occur in multi-tab, with
  needactions received during an inactivity period)
- remove <pre> tag when computing messages' preview for the messaging dropdown
  as they break the layout and add 'overflow: hidden' on o_mail_channel_preview
  just in case
- rename 'New message' button in Inbox into 'Send mail' as it was confusing,
  and adapt .pot file accordingly
- focus on composer when opening a chat window
- break lines in threads to avoid horizontal scrollbar (credit goes to qsm)
- correctly apply rules on <p> in threads

opw-667235
2016-01-25 15:46:55 +01:00
Denis Ledoux cca96db88d [FIX] website_event_sale: Tour test, the expected amount is 5,500
The amount was 3,8560.96 because the Benelux pricelist was
applied by default, due to a regression introduced by
698c0c557d

while it should have been the public pricelist loaded
by default.

Both the benelux and the public pricelists were available,
but it should be the public pricelist chosen by default,
as it's the default website pricelist.

See bf78ad7bf7 for more
explanations.
2016-01-25 14:16:00 +01:00
David Monjoie 11fe2d5b6d [FIX] mass_mailing: added missing models in form view
Backport of fda5021e6b that I
erroneously did in 9.0, thinking it was reported on 9.0.
2016-01-25 13:42:37 +01:00
Martin Geubelle b50e99c1af [FIX] web_kanban: correct title on kanban
In a grouped column one should display the total number
of records and not only the loaded records.
2016-01-25 13:34:59 +01:00
Denis Ledoux bc0cff4bf8 [FIX] website_sale: do not reload the previous cart if not valid
If a user signs in, and as a previous unfinished
order, it loads it only if the pricelist set on this
sale order is amongs the available pricelists.

Otherwise, he could benefit of prices that
are no longer available.
2016-01-25 13:04:58 +01:00
Denis Ledoux bf78ad7bf7 [FIX] website_sale: loaded default pricelist
If a user signed in, the pricelist must be,
in this very specific order:
 - the pricelist of its saved cart
   except if the cart is no longer valid
   (pricelist no longer available or
    order no longer draft),
 - or, the user specific pricelist,
   in other words, the pricelist set by an employee
   for this specific customer, if any,
 - or, the public user pricelist, if it is available
   in the user geolocalization
 - or, the first pricelist available

In addition, if the user firstly browses the shop
without being signed in, and then signs it, the pricelist
loaded after the sign in must be the user specific pricelist,
if any, and not the default website pricelist (the public
user pricelist or the first pricelist available)

opw-666620
2016-01-25 13:04:58 +01:00
Denis Ledoux b8e9017f66 [FIX] website_sale: portal users special pricelists is always available
This revision reverts e5b9f02f7a

The argument `website_pl` must always be the default website
pricelist (the public user pricelist), as stated in this
method documentation:

```
:param int website_pl: The default pricelist used on this website
```

So the difference between the public user pricelist
and a specific user pricelist can be made.

A special pricelist set for a specific customer must
always be amongs the available pricelists.

opw-666620
2016-01-25 13:04:58 +01:00
Denis Ledoux 7ad309e015 [FIX] survey: matrix results after row deletion
In a survey question of type `matrix`,
nothing prevents to remove a row from the matrix,
even if there are already answers for this line.

If the case happens, the row is deleted, but
not the answers. The answers are therefore orphan.
The answers should probably be deleted when the
row is removed from the survey, but this is a risky
change, and, even, users might want to keep track
of the answers given even if the line doesn't exist
anymore in the survey.

Therefore, we just handle the case when displaying
the survey results,
we ignore matrix answers for which the row no longer
exists.

opw-666393
2016-01-25 11:32:31 +01:00
Raphael Collet 6872aae8ef [FIX] tools: do not crash on wrong translations in view
During the construction a xml/html_translate content, in case of a wrongly
translated part (e.g. not correctly escaped char or bad xml tag), escape the
translation.

The verification is done during the rendering on the view which is not the most
optimal solution but has the advantage of working on system with some broken
translations and does not requires to reload the translations.

In master version, the verification could be done when loading the .po files.
2016-01-25 15:10:16 +05:30
Odoo Translation Bot dc48744bf7 [I18N] Update translation terms from Transifex 2016-01-24 03:00:37 +01:00
Odoo Translation Bot 6a6827e85b [I18N] Update translation terms from Transifex 2016-01-24 00:33:22 +01:00
Raphael Collet 70fdb5a26e [FIX] calendar: in method write(), process all records and not the last one only 2016-01-22 17:12:09 +01:00