Commit Graph
99446 Commits
Author SHA1 Message Date
Nicolas Lempereur daca0d350a [FIX] mass_mailing: on_change in new and old api
Keep only the on_change in the new api, the other one caused error and
was pointless.

fixes #9537
first half of:
opw-656693
2015-11-18 08:27:47 +01:00
Nicolas Martinelli d40a548ac8 [FIX] purchase: prevent traceback
message_post should only be called with a singleton.
2015-11-18 08:08:42 +01:00
Nicolas Martinelli b098ab1f93 [FIX] purchase: unit price
The seller price is expressed in the seller UoM. If the UoM of the PO
line is different from the seller UoM, it must be recalculated.

opw-654417
2015-11-18 08:08:42 +01:00
Olivier Dony 245bcc61f6 [FIX] tools: ignore unknown entities while parsing 2015-11-03 21:38:53 +01:00
Olivier Dony a7e8ab363e [FIX] account, crm: avoid exceptions when processing parameters 2015-11-03 21:38:53 +01:00
Thibault Delavallée 3eb415b1fd [FIX] hr_holidays: my leaves on leaves summary
By default the Leaves Summary menu should display my leaves and allocations grouped
by type, for this year.
2015-11-17 17:21:27 +01:00
Cedric Le Brouster 72b76f8de5 [CLA] Corporate CLA for OpenFire
Closes #9104
2015-11-17 17:08:42 +01:00
Jared Kipe 25d5883af4 [CLA] Hibou Corp sign corporate CLA
Closes #9167
2015-11-17 17:08:42 +01:00
Nils Hamerlinck 700787309c [CLA] Nils Hamerlinck sign individual CLA
Closes #9547
2015-11-17 17:08:42 +01:00
Denis Ledoux 2b1b0e6d13 [FIX] web: editable list validation with several pages
This revision is related to a9d20d9fa0.

`dataset.cache` contains an item for each records, even
if the records hasn't been loaded in the cache. If a record
has not been loaded, only the record id is available, not
the other values. Thefore, this isn't possible to validate
the record values of records that have not been loaded
in the dataset cache.

opw-654013
2015-11-17 17:07:31 +01:00
Eneldo Serrata 9325cd054a [CLA] Eneldo Serrata sign individual CLA
Closes #9516
2015-11-17 17:01:13 +01:00
Raphael Collet 9687eb3d84 [FIX] translate: fix xml_translate to use an HTML parser as a fallback
When terms are translated in the website, their values are sent as HTML (with
text entities escaped).  The function `xml_translate` is used to sanitize those
values, and sometimes crashes because of non-closed entities like `<br>`.  Fix
it by using an HTML parser as a fallback.

This is a partial revert of 6c8e53a087.
2015-11-17 16:18:05 +01:00
Raphael Collet 69db2f537b [FIX] website: avoid looking up key in context=None 2015-11-17 16:18:05 +01:00
Simon Lejeune 7fcc79da21 [FIX] packaging: bundle doc and pdf files
so that demo data of hr_recruitment and website_slides are complete.
2015-11-17 15:56:43 +01:00
Damien Bouvy d18441d348 [FIX] web: longer delay for module load warning
Warning messages are automatically displayed if a module takes more than 1000ms to load, but this delay is a bit short if you make multiple rpc calls (sorry for all the dead kittens)
2015-11-17 15:54:50 +01:00
Aaron Bohy 0cd10f9af8 [FIX] mail: chatter: undefined variable 'event' on firefox
Variable 'event' is magically defined on some browsers like chrome, but not on
firefox. Anyway, those preventDefault() were useless as they are performed
beforehand.
2015-11-17 15:49:43 +01:00
Goffin Simon b27333919a [FIX] crm; probability of a crm.lead record
When creating a crm.lead record, the default probability of this record
must be the the probability of its default stage.

opw:654284
2015-11-17 15:20:35 +01:00
Maxime Chambreuil 58f06d6a9c [ADD] l10n_ca: fr_CA translation
Make the chart of account compatible with l10n_multilang to be translated in
French (Canada)

Closes #9398
2015-11-17 15:19:14 +01:00
Thibault Delavallée 6543554b95 [FIX] hr_holidays: Year filter
This filter filters requests for this year. However allocation requests do not
have date_from and date_to. For requests not having those dates the filter
takes requests whose type (holiday_status_id) is active. This was the old
Year filter, that is applied only to allocation requests now. Leave request
are still based on date_from and date_to.
2015-11-17 14:45:50 +01:00
Thibault Delavallée 32edde6bcf [FIX] hr_holidays: duplicate filter My Leaves 2015-11-17 14:45:50 +01:00
Thibault Delavallée ef1c8385a1 [FIX] hr_holidays: allocation by tag
Revision 1e90257e58 removed hierarchy in
hr.employee.category model. Indeed they are used and displayed like tags
and not like hierarchical categories anymore.

However the allocation by tag was still using the childof operator
to go through hierarchy. No need to do that anymore.
2015-11-17 14:45:50 +01:00
qsm-odoo 0a830c5b1a [FIX] website_sale: product grid layout (saas & css)
Product grid layout is made with a table with colspans and rowspans
alongside fixed height cells (according to rowspan values). The fixed
height for cells was required because of chrome, which cannot have
fixed height rows to work properly. However, for some reasons, fixed
height cells combined with rowspan does not work everytime on firefox.

Solution is to combine the right solution (fixed height row and let the
cells compute their height according to rowspan values) and the fixed
height cell hack for the system to work on chrome.

This commit also corrects changes made in some previous commits in
website_sale.css without going through the .sass file.
2015-11-17 14:08:18 +01:00
Martin Geubelle 94d9658c78 [IMP] web_settings_dashboard: add panel for Odoo Enterprise
This panel fetches the number of active users and redirects to our server with the correct parameters to begin the 'buy' process.
2015-11-17 13:01:09 +01:00
Damien Bouvy 07fe5afc87 [IMP] web: distinction between community and enterprise version in the js framework
It was bound to happen: some functionnality need to be triggered depending on the current edition of Odoo. To do this, we add a property 'version' on the global odoo object.

This change is mirrored on the enterprise repo.
2015-11-17 13:01:09 +01:00
Adrien Dieudonné 22e94f5254 [IMP] web: better 'Odoo Enterprise' settings popup
The popup is now a bit more styled and needs less info to call our servers.
2015-11-17 13:01:09 +01:00
Damien Bouvy 608b2f7fba [IMP] mail: update notifications sends/receove Odoo Enterprise information
Our servers now accept contract codes and answers with expiration date and expiration reason.
2015-11-17 13:01:09 +01:00
Martin Geubelle 65d0faca4d [IMP] auth_signup: reset password form
* Hide 'back to login' when there is a token
* Hide the form when the token is invalid
2015-11-17 13:01:08 +01:00
Nicolas Martinelli 53d064716b [FIX] purchase: UoM in anglo saxon accounting
The call to _compute_price is wrongly done, and therefore the parameters
of the method do not correspond. This leads to a valuation_price_unit
which is incorrect.

opw-653694
2015-11-17 12:31:53 +01:00
Nicolas Martinelli 63d17e4840 [FIX] purchase: price in anglo saxon accounting
The price difference was wrongly calculated since we subtracted a
unit price with a total price (price_unit - price_line).

opw-653694
2015-11-17 12:31:53 +01:00
Thibault Delavallée 4753cd410c [FIX] mail: template form view
Issue with last field (report_name) on a page, was not displayed
completely.
2015-11-17 10:49:43 +01:00
Thibault Delavallée 69ed801979 [FIX] mail: internal note recipients
In some cases internal notes could be sent to more people than expected.
The correct list of recipients was computed but not assigned. Doo.
2015-11-17 10:49:20 +01:00
Nicolas Martinelli feb2ede0d6 [FIX] sale: recalculate price if quantity changed
The price might depend on the quantity, therefore it is necessary to
recalculate it anytime the quantity is changed.

opw-653615
2015-11-17 10:22:42 +01:00
Aaron Bohy eae08d39d6 [FIX] mail: mark as read: notify correct partner
When calling 'set_message_done' on a message which is a needaction for several
partners, the method was executed as root. This was an issue for the triggered
notification, as it was thus always sent to the admin.

For example, when Demo user marked such a message as read, he never received
the notification, but the Admin did, and its notification counter weirdly
decreased, while the one of Demo user remained the same.
2015-11-17 10:06:18 +01:00
Aaron Bohy a537a8466c [FIX] mail: close livechat conversations without unsubscribing
The problem occured when the user in the backend (client action) closed the
livechat before the user in the frontend, because we performed the wrong RPC,
and the backend user was removed from the partners following the discussion.
Thus, the messages sent from that point by the frontend user were never
received.

When closing a DM or livechat, we should call 'channel_pin', when unsubscribing
from a channel, we should call 'action_unfollow'.
2015-11-17 10:06:18 +01:00
Aaron Bohy 4ce2d6f7c3 [FIX] im_livechat: MailChannel inheritance
Commit 2bb55ec adds argument extra_info to the signature of channel_info() in
mail addon. However, this method is inherited from the im_livechat addon, and
its signature hadn't been adapted, causing tracebacks when im_livechat was
installed and channel_info() was called with an extra_info.
2015-11-17 10:06:18 +01:00
Aaron Bohy c51af45384 [FIX] mail: various UI improvements
- vertically center date and messages separators in threads
- remove notifications in DM and livechat
- order mail demo data so that messages appear ordered (they are ordered by id)
- make sure that DM are pinned (they weren't on the receiver side)
- don't display DM until a message has been sent
- validate message body
- undo snackbar fine tuning
- fix Firefox scroll bug on sidebar rendering (the scroll position was often
  lost when the sidebar was re-rendered, seemingly because the width of the
  thread changed for a brief moment)
2015-11-17 10:06:18 +01:00
Nicolas Martinelli 0f5a146182 [FIX] l10n_ch: missing included taxes
Both included and excluded taxes should be defined.

opw-654141
2015-11-17 08:21:17 +01:00
Denis Ledoux 9c5961bc8a [FIX] account: improve performances for reconciliations
This rev. is related to 3dd79b3d65.

Both `journal_id` and `date` on `account.move.line` are
related from the `move_id` of the line.

Besides, the move associated to these move lines is
created with the same values, in
`_prepare_reconciliation_move`:
 - The move `date` is set with `self.date`,
   exactly the same than what was set in the `aml_dict`
 - The move `journal_id` is set with `self.statement_id.journal_id.id`,
   which is the origin field of the related field `self.journal_id.id`
   used in the `aml_dict`

opw-656463
2015-11-16 17:58:15 +01:00
Denis Ledoux c2a6aeb244 [FIX] mail: internal subtypes with special characters
The fields options in the form are evaluated with
a `py_eval`, see:
https://github.com/odoo/odoo/blob/3c2e48423b4f9706216cada549d0a725f2dd07d2/addons/web/static/src/js/views/form_common.js#L664,
not as a JSON.

This was changed in October 2012, with rev.
c538db258a

Therefore, the field options must not be passed as a JSON, but
as a Python dict.

This had as side-effect to uncorrectly load the internal
subtypes for the "log a note" feature. For instance,
French translations with accents were displayed incorrectly.

opw-656409
2015-11-16 16:38:54 +01:00
qsm-odoo 3c2e48423b [FIX] website: nested container width
Add !important flag to the width:auto rule for a container inside a
fixed width parent. Notice that there should not be any container
inside another container (this would allow to remove this rule) but
this makes sense for the "readable" class.

This fix is made to solve website themes issues.
2015-11-16 16:07:43 +01:00
Nicolas Lempereur b820faed66 [FIX] web_editor: don't think HTML comment are visible
Summernote sometimes doesn't take into account HTML comment could be
embedded in the edited content, this can lead to issue since this
situation can happen in Odoo.

This commit patch the "isVisiblePoint" summernote's function to take
care of this issue.

opw-656332
2015-11-16 16:02:45 +01:00
Denis Ledoux 3dd79b3d65 [FIX] account: improve performances for reconciliations
The field `company_id` on `account.move.line`
is a related to the `company_id` field of the
`account_id` field on this move line.

Therefore:
 - Forcing the company of the `account.move.line` to the
   company of the `account.bank.statement.line` is pointless,
   as this field is supposed to be a related from the `account_id`
   of the move line. It's the `account_id` that must be set correctly,
   to an `account.account` of the right company. This is the case, btw.
 - Forcing the company of the `account.move.line` triggers the
   write of the `company_id` on the related `account.account`, which
   triggers the write of the `company_id` on all `account.move.line`
   records having as `account_id` this `account.account`.

Therefore, the more you had move lines on an `account.account`,
the more the reconciliation was slow for move lines with this `account_id`.

opw-656463
2015-11-16 15:17:07 +01:00
Nicolas Lempereur 3510ff3921 [FIX] web: update form view image after reload
6baf611d updated the image when showing the view form the first time,
but when reloading (e.g after a write) there was a difference which
would not cause the update.

second half of:
opw-654279

(follow-up of a8ae944)
2015-11-16 12:17:03 +01:00
Géry Debongnie e1727c98fe [FIX] mail: prevent race conditions when joining channels
it should now be impossible to join a channel several times when loading
a browser tab
2015-11-16 09:51:09 +01:00
Géry Debongnie 856743fd06 [FIX] mail: automatically join a channel if a message is received
before, messages were ignored if we were not already in the channel.
2015-11-16 09:51:09 +01:00
Géry Debongnie 1378dc130c [FIX] bus: prevent duplicate messages on browser refresh
On browser refresh, the bus sends the last notifications for the last
50secs.  This is really annoying to deal with, especially in the chat
applicatiion.  This commits ensure that duplicate notifications are
ignored.  This is done by saving the id of the last notif in the local
storage.

Note: it is also necessary to clear the last message id in the local
storage to prevent problems when a developer resets his db, and will not
receive any notifications.
2015-11-16 09:51:08 +01:00
Aaron Bohy 2c60b1bc2d [FIX] bus: correctly detect master tabs
The problem was that the tab_manager compared its last heartbeat value with an
old value stored in the local storage (when being elicted master, the tab
writes a new heartbeat in the locat storage).

This solution makes sure to compare the actual value in the local storage with
the heartbeat value stored in the tab_manager.
2015-11-16 09:51:08 +01:00
Aaron Bohy 196e1322f2 [FIX] mail: needactions: mark as (un)read
Marking a message as read in the inbox doesn't remove needactions on all
channels anymore.

When joining a channel (other than the inbox) in which there are needactions,
those needactions are automatically marked as read and removed from the inbox.
When the user clicked on Undo in the snackbar, the messages weren't correctly
re-inserted in the inbox (in the JS cache).
2015-11-16 09:51:08 +01:00
Nicolas Martinelli 48942f1242 [FIX] web: display Warning if "Save & Close"
When a warning is triggered by an onchange, clicking on "Save & Close"
will cause the warning to be closed as soon as it is shown. This fix
prevents the saving and closing if a warning message is detected.

opw-653503
2015-11-16 08:53:04 +01:00
Odoo Translation Bot 3d7ae73305 [I18N] Update translation terms from Transifex 2015-11-15 01:35:06 +01:00