Commit Graph
103345 Commits
Author SHA1 Message Date
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
Géry Debongnie 12f381d2be [FIX] web: remove autosize.js from assets
I forgot to remove it from the bundle, after removing the files.  Why
did noone stop me?
2016-01-25 14:44:15 +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
Julien Legros e5e7c4c121 [MERGE] forward port of branch 9.0 up to 6872aae 2016-01-25 11:26:27 +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
pgu-odoo accf34b442 [IMP] purchase : search by product category on purchase report 2016-01-25 14:51:31 +05:30
Martin Trigaux 1f0b0edc6b [MERGE] migration of product_email_template to the new API 2016-01-25 14:29:16 +05:30
Martin Trigaux 11ef960949 [FIX] product_email_template: remove outdated demo data 2016-01-25 14:28:57 +05:30
Prashant Panchal 7f18dfc9ed [REF] product_email_template: migration to the new API 2016-01-25 14:28:57 +05:30
Prashant Panchal 01d99c159b [REF] product_email_template: rename module files 2016-01-25 14:28:57 +05:30
Fabien Pinckaers 733532c116 [IMP] Deposit is a sale tax, not purchase/none 2016-01-24 23:12:54 -08:00
Fabien Pinckaers 93adbe15c9 [IMP] removing disturbing tooltip when writing an email 2016-01-24 12:57:51 -08:00
Fabien Pinckaers b22b4268bc [IMP] remove purchase_id from vendor bill line 2016-01-24 12:04:44 -08:00
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
Fabien Pinckaers f7a0d667ee [IMP] remove confusing tooltip for end-user (when he was composing an email) 2016-01-22 14:00:32 -08: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
qdp-odoo 1db0d4bf9a [FIX] l10n_be: better tags on taxes in order to have an enhanced VAT report + migration script 2016-01-22 16:29:04 +01:00
Raphael Collet 748a719fd9 [FIX] fields: make related_sudo work for draft records (used by onchange)
Accessing a related field with `related_sudo=True` on a draft record should
effectively traverse the fields as the admin user.

This fixes #5121, #7138.
2016-01-22 16:06:27 +01:00
Goffin Simon ec0e413099 [FIX] website_sale: Suggested alternatives
Suggested alternative descriptions spill out of the boxes if the
description is too long.

PS: same fix as in saas-6 with f7110b46be.
This fix doesn't have to be forwrad ported.

opw:667343
2016-01-22 15:41:54 +01:00
Cedric Snauwaert 1c1e5b4529 [FIX] account_bank_statement_import: unique_import_id is not unique enough, so add the journal_id in it 2016-01-22 11:52:25 +01:00
fossoult 1d8004dd70 [FIX] hr: context may be immutable
Since v8, context can be an immutable frozendict and should not
generally be updated in-place.

closes #10589
2016-01-22 11:12:57 +01:00
Nicolas Martinelli 1806ea1859 [FIX] account: write-off currency and sign
The write-off currency should be the currency of the first
account.move.line, since it is what is assumed in the interface.

Moreover, the sign of amount_currency should match the constrain
_check_currency_amount.

opw-667137
2016-01-22 09:58:19 +01:00
Denis Ledoux 85b39df834 [FIX] mail: odoo link in notification email
This is the forward port of the below revision:
135ad9e954

That should have been done in the below forward-port:
c298cf3250

opw-667335
2016-01-21 17:39:05 +01:00
qdp-odoo a2ff33faac [IMP] account: added some functions to help updating VAT reports in localization modules. [FIX] l10n_ch: better tags on taxes in order to have an enhanced VAT report 2016-01-21 17:35:16 +01:00
Nicolas Martinelli 564fda4d8f [FIX] account, account_asset, purchase: extra field in auto fill
The Purchase module provides a functionality to add pre-filled invoice
lines to an invoice. The issue is that extensions of the accounting
modules might add fields on an invoice line, and one would like to see
these fields populated as well.

This is the case for account_asset, which adds an asset_category_id on
an invoice line. However, the Purchase module is not aware of the fields
added by account_asset, and therefore it cannot populate them.

This fix adds a method, _auto_fill_extra, which is intended to manage
these extra fields.

opw-667162
2016-01-21 15:51:20 +01:00
Nicolas Martinelli be0ff1946d [IMP] purchase: add invoice line
Use method new() instead of caching the current values.
2016-01-21 15:51:20 +01:00
Goffin Simon 5009944410 [FIX] stock: action_cancel
When writing several times on the same record in the same transaction,
the orm raise a Missing error because the rowcount only gives one
difference.

opw:666470
2016-01-21 14:51:56 +01:00
Goffin Simon dc02f773ce [FIX] mail: onchange_template_id
When using context action for a template, the report was not shown in
the compose message as an attachment.

opw:657152
2016-01-21 14:36:20 +01:00
qsm-odoo 1fa1ec850c [IMP] stock_landed_costs: Broken layout on stock.landed.cost form view 2016-01-21 12:54:23 +01:00
qsm-odoo cda0b10401 [IMP] stock_landed_costs: Broken layout on stock.landed.cost form view
Note for forwardport: This is a minimal fix, but crappy.
Another one cleaner will be merged in master (~saas10)
2016-01-21 12:31:02 +01:00
Goffin Simon c790464fd6 [FIX] hr_payroll_account: onchange_contract_id
If there is no contract then the default journal_id must be set.
PS: The field "journal_id" in "hr.contract" model is not required.

opw:667093
2016-01-21 10:12:43 +01:00
Odoo Translation Bot 78a0a60b08 [I18N] Update translation terms from Transifex 2016-01-21 06:31:45 +01:00
Fabien Pinckaers 7a7896a74f [FIX] correct order of stages in recruitment 2016-01-20 10:32:26 -08:00
Nicolas Martinelli 2d4257da1a [FIX] payment_authorize: send billing and shipping data
Authorize.net requires both billing and shipping data.

opw-660771
2016-01-20 15:48:31 +01:00