Commit Graph
99010 Commits
Author SHA1 Message Date
Odoo Translation Bot 7592d85b1f [I18N] Update translation terms from Transifex 2015-10-18 01:35:07 +02:00
Damien Bouvy 31ff6c68f4 [FIX] project, sale_timesheet: common field between non-dependent modules workaround
The project and sale_timesheet modules both define a project_time_mode_id field on res.company but they are not dependent on each other. This causes problem because the first module that creates the field "wins" the xmlid and will delete the field on uninstall, regardless of the other module (which will then stop working until you do an update that will recreate the field).

To work around this in a stable version, we manually create xmlids for the field in each module; on uninstall the field will not be deleted if an xmlid still refers it (which will be the case if the other module is installed).

Inheriting fields from modules that are not dependent in a direct way (ancestor-child) is not supported, so normally you should use modularity to define the field in a parent module. Since 9.0 is a stable version, we need a small workaround.
2015-10-16 16:38:25 +02:00
Aaron Bohy be5fc7b1a4 [IMP] mail: redirect to DM on user clicked
When clicking on a partner in the thread of messages, it opens the DM with the
associated user if there is one (and if this user isn't the current user).
Otherwise, or when clicking on a record of any other model, the user is
redirected to that record's form view.

This change required a minor change in chat_manager: create_channel now
returns the created channel, as the client action needs it to switch to it.

Moreover, in the thread, when there is no partner associated with a message
(only an email address), we simply use html's mailto mechanism. This fixes a
bug as we formerly tried to open an unexisting record of res.partner.
2015-10-16 15:52:02 +02:00
Géry Debongnie 6ae0309b99 [FIX] bus,mail,livechat: fix problem with multiple long polls
The bus was allowed to restart polling, client side, to allow the user
to directly receive messages in new channels.  This was only acceptable
as a temporary fix, the correct way to do this is to actually notify the
bus server side. This is even more urgent since the client was allowed
to keep multiple longpolls simultaneously, which degraded the experience
in some cases.
2015-10-16 15:52:01 +02:00
Aaron Bohy 765cfa040d [IMP] mail: client action: sidebar: hide livechat when empty
Channel types that disable the 'add a channel' feature like the livechat are
now only rendered in the sidebar of the client action if there exists at least
one channel of that type.
2015-10-16 15:52:01 +02:00
Géry Debongnie 4884b41f55 [IMP] mail: chat_windows improvements
including:
- larger chat windows
- add a counter for unread messages when the chat window is folded
2015-10-16 15:52:01 +02:00
Géry Debongnie 9f86de81bc [FIX] mail: fix permission issue when starring/marking messages
If a user does not have write permissions on a model, he should still be
able to remove himself from the many2many relation.

This caused a problem: some messages could not be modified by a user
(star/unstar or mark as read)
2015-10-16 15:52:01 +02:00
Aaron Bohy 4c7ab52a67 [IMP] mail: thread: hide avatar, author and date of consecutive messages
... from the same author, written within 1 minute (restricted to comments).

Also:
 - Display stars and needactions on hover only
 - Display the date of messages without avatar and info in the margin on hover
 - Add 'selected' state of messages (mainly for touch screens to replace hover)
 - Fix typo (msg_type -> message_type) on the computation of the avatar url
2015-10-16 15:52:01 +02:00
Aaron Bohy 2dfbaceaec [IMP] mail,im_livechat: client action sidebar: 'unsubcribe' cross
displayed for all channels
2015-10-16 15:52:01 +02:00
Aaron Bohy 6b2250b2d2 [FIX] mail: font-family of notification counter in systray
On firefox, the font-family of the counter was font-awesome instead of Roboto
because the counter was inside the <i> tag on which font-awesome rules applied.
This rev. simply moves the counter out of that <i> tag.
2015-10-16 15:52:01 +02:00
Géry Debongnie b8badd6263 [IMP] mail: various small ui improvements
including:
- decrease vertical spacing between user name and text
- decrease vertical spacing between messages
- align avatar width with first line of message
- bold channels more visible (color is actually white)
- decrease online status icon size and change its color
- hide the DM unpin icon, and show it only when hovering
- the add channel icons are less white
- offline user icon is now white
- the unpin icon is now visible when hovering on user name
- correctly display notifications in inbox
2015-10-16 15:52:00 +02:00
Martin Trigaux 6b84b08928 [FIX] hr_equipment: typo
will be fixed properly in master
2015-10-16 12:02:38 +02:00
Martin Trigaux c435db03a3 [FIX] account: typo in field definition
createS
missing 'when'
anly -> only
2015-10-16 11:53:40 +02:00
qdp-odoo c1920951ec [FIX] purchase: fixed onchange of product that wasn't setting the supplier taxes 2015-10-16 09:53:25 +02:00
qdp-odoo af0f33a475 [FIX] stock_account: raise proper error when the valuation accounts aren't set on the product category while trying to process a stock move for a product in perpetual valuation. Fixes #8873 2015-10-16 09:41:25 +02:00
Josse Colpaert 1456262801 [IMP] mrp: remove domain for analytic accounts referenced as they don't have type view anymore (and no type also) fixes #9063 2015-10-15 17:09:14 +02:00
Goffin Simon 81f34b977b [FIX] event_sale: get_default function
The get_default function must return the values to write in the same format
as in get_default defined in openerp/models.py

opw:652095
2015-10-15 16:55:33 +02:00
Richard Mathot f820daf43c [FIX] survey: bad groups for menus
Regular users should be able to see the Answers to a Survey, but the
messy configurations menus should be in technical features
2015-10-15 16:13:27 +02:00
Martin Trigaux f7aec21d21 [FIX] hr_payroll: wrong field in sheet computation
The type of the account is now on the field internal_type, there is no longer a type field

Fixes #9078
2015-10-15 09:32:31 +02:00
qdp-odoo ddbe0e18f3 [FIX] stock_account: raise an error if the valuation_amount is zero, to avoid wrong configurations. 2015-10-14 18:01:06 +02:00
Simon Lejeune 58ae39945a [FIX] ir_qweb: assetsbundle: commit the writes in ir.attachment
rev 6327cda0a tried to workaround the fact that the assets bundle were
unreadable when they are created in the same request by opening multiple
cursors and commiting the writes in ir.attachment. Sadly, this strategy
introduces sometimes hard to reproduce and hard to understand deadlocks
when regenerating the assets. This commit tries a ~safer strategy by not
opening multiple cursors but commiting the writes in ir.attachment when
a magic key is in the context.
2015-10-14 17:42:19 +02:00
Simon Lejeune d1fb85d3dc Revert "[FIX] ir_qweb: assets: write in ir.attachment outside of main transaction"
This reverts commit 6327cda0a7.
2015-10-14 17:42:19 +02:00
Simon Lejeune ed56952079 Revert "[FIX] ir_qweb: add id to ir.attachment mock"
This reverts commit c3c2281a4d.
2015-10-14 17:42:19 +02:00
qdp-odoo 3f231fc0ac [IMP] account: auto-install account_yodlee module for some more localizations, accordingly to what is written at https://docs.google.com/spreadsheets/d/1tnUwiweunpjBdDkzTx2XqfE8Usv9MZPH_C20WRVoyvY/edit#gid=0 2015-10-14 16:36:38 +02:00
Christophe Matthieu 33baebd139 [FIX] website_sale: can display video and iframe in website description
Sanitize remove the iframe generate to add a youtube video for html field like product description on website.
2015-10-14 16:25:56 +02:00
Arthur Maniet 8283e5f640 [FIX] stock: locations barcodes report CSS
Adapt style injection to changes from 2fa34fcfef
2015-10-14 15:45:29 +02:00
qdp-odoo ab26b7cec2 [FIX] account: no gap in invoice numbering when doing 'cancel-reset to draft-revalidation' use case. Fixes #9003 2015-10-14 13:36:15 +02:00
qdp-odoo 64a6a84073 [FIX] purchase: stock valuation with taxes has to use the quantity 1 for computation of unit price 2015-10-14 13:36:15 +02:00
Nicolas Martinelli d1e6ba6d9e [FIX] web_editor: forcedReload of the page
On Firefox, the website page is not completely reloaded after saving or
cancelling. Because of this behavior, the Edit button is kept disabled,
forcing the user to completely refresh the page in order to activate the
Edit button.
2015-10-14 11:24:11 +02:00
Aaron Bohy 7730a8deae [FIX] calendar: reminder notifications: event's handlers
By extending the Notification widget to create the CalendarNotification one,
we override the events key of Notification defining the handler when clicking
on the close cross. So when clicking on the cross, it doesn't close the
notification, and it even toggle the app switcher since the preventDefault
isn't performed.

Note that this should be directly handled by the webclient itself, and its
mechanism of extending widgets. This should be done in current master.
2015-10-14 10:49:17 +02:00
Géry Debongnie 1a4b24586d [FIX] mail: disable message_last_post to prevent race conditions
The message_last_post mechanism was introduced to have a trigger for
automated actions, but for some reason we do not use it.  Moreover, it
interacts badly with the bus.

Because of the message_last_post update, concurrent transactions can
fail and be rollbacked.  This is an issue because the bus commit the
transaction after writing the messages.  This means that some messages
can be duplicated, and the more users are chatting, the more frequent
this will happen.

Since we don't use this field, it could be removed from the models, but
we are in a stable release, so we need to keep it for now.
2015-10-14 09:17:04 +02:00
Nicolas Martinelli 7661a7402b [FIX] web_editor: trigger mouseup at start
When we initialize the web editor, the font size in the toolbar is
initialized to NaN.

What is done:
- Initialize the Summernote editor in initialize_content
- Render the content of the node in render_value
- Append the node to the DOM

Since the Summernote editor is initialized in initialize_content, the
node is still hidden. Since the node is hidden, Summernote won't be able
to determine the style info of the text (see method fromNode from
Style.js). Indeed, when jQueryCss is called, $node.is(':hidden') is true
which will lead to styleInfo['font-size'] = NaN.

To avoid patching Summernote, we take advantage of an existing trigger
which reloads the button content upon mouseup. This is also safer than
initializing Summernote after appending the node to the DOM.

opw-652041
2015-10-13 17:58:33 +02:00
Martin Geubelle b240d0000b [FIX] account: incorrect sentence
* Revenue recognition is not in account_asset anymore but in another module
* Will be fixed in master, creating en_US translation for stable
2015-10-13 16:41:30 +02:00
Raphael Collet ac98af1e9f [IMP] models: recompute fields following a topological order on their dependencies
The goal is to avoid recomputing field several times.  Consider, for instance,
two fields F and G, such that G depends on F.  Suppose that G is recomputed
before F.  Saving G to database proceeds well, but when F is saved to database,
G is invalidated and marked for recomputation.  Field G is possibly recomputed
twice on some records.

Avoid this situation by chosing a field such that none of its dependencies must
be recomputed; use a topological sort based on field dependencies for that
purpose.  In the example above, G will never be recomputed before F.
2015-10-13 14:49:57 +02:00
Aaron Bohy e82deb5ae1 [FIX] web: action_manager: restore internal state on rejected action
When an error occured while executing an action (e.g. access rights), the
action manager's state was inconsistent as inner_action, inner_widget and
action_stack were all updated before trying to execute the action. Then, if the
user tried to open another action, the screen was split into two because the
reference of the previous action was lost, and thus it couldn't be detached.

We now restore inner_action, inner_widget and action_stack to their previous
state in the case of a rejected deferred.

A better fix would be to update all three variables once the deferred is
resolved, but it would require a refactoring of the way the action manager
and the view manager communicate to perform the do_push_state and to compute
the breadcrumbs. Indeed, those operations directly rely on the internal state
of the action manager, and they are performed before the callbacks in
push_state are called. Such a refactoring should probably not be done in
stable.

Partly fixes #8886.
2015-10-13 11:26:22 +02:00
Aaron Bohy 1cf83427da [FIX] web: view_manager: correctly return rejected deferred
The problem was that the action manager wasn't notified at all when something
went wrong with the view manager as the deferred returned by appendTo was in
that case never resolved nor rejected.
2015-10-13 11:26:22 +02:00
Nicolas Martinelli db68f9c4be [FIX] mail, project: define search method for message_is_follower
In order to be able to search on a non-stored computed field, a search
method must be defined.

This also reverts commit fd38fc0a02.

Fixes #8920
2015-10-13 10:15:21 +02:00
Cedric Snauwaert 1458575c68 [FIX] account: _compute_residual should returns 0 for line that have an account not reconciliable
+ add index on account_partial_reconcile to increase performances
2015-10-13 10:06:22 +02:00
Simon Lejeune afd187d3b1 [FIX] packaging: windows: bundle xlrd
xlrd allows to import xls files and is an optional dependency. Bundle
it in the exe release for convenience.
2015-10-12 17:33:38 +02:00
Raphael Collet 15127d3390 [IMP] models: enlarge value of PREFETCH_MAX to match the one used in cursors
This improves the performance of prefetching fields for large recordsets.
2015-10-12 17:23:41 +02:00
Martin Trigaux b21d96ec2d [FIX] hr: incorrect sentense
Incomplete senstense "improving applications, such as the"
Will be fixed in master, creating en_US translation for stable
2015-10-12 16:43:31 +02:00
Martin Trigaux 3fd6ac9385 [FIX] web: export terms of community
not enterprise + community

Fix typo in description string (was already done in enterprise)
2015-10-12 16:38:15 +02:00
Goffin Simon 31cb27154a [FIX] board: creating a dashboard
Introduced by 72e94beeb5

opw:651811
2015-10-12 15:27:23 +02:00
Christophe Matthieu 8e245904f5 [FIX] web: many2many_tags: blacklist selected ids in the dropdown
Issue: already selected ids are not filtered in the many2one and appear in the dropdown (but can't be select because the item are already selected)
2015-10-12 12:21:22 +02:00
Fabien Pinckaers 77e18a4800 [FIX] typo 2015-10-12 11:36:42 +02:00
Nicolas Martinelli fd38fc0a02 [FIX] project: filter "Followed by Me"
The filter "Followed by Me" depends on a calculated field is not stored.
Therefore, we need to redefine the search method.

Fixes #8920
2015-10-12 10:53:38 +02:00
Odoo Translation Bot a6999391d3 [I18N] Update translation terms from Transifex 2015-10-12 10:51:48 +02:00
Joren Van Onder 50c8b3d4ef [FIX] point_of_sale: set CSRF token
The introduction of the CSRF tokens in
8932c52e67 broke invoicing from the Point
of Sale. chrome.do_action('point_of_sale.pos_invoice_report') would
fail because no CSRF token is set in the POS. This fixes it using a
similar approach as in the website module.
2015-10-12 10:19:18 +02:00
Damien Bouvy 38db647534 Revert "[FIX] sale: when creating a refun from an invoice, the invoice lines must be linked to the original so lines to compute the invoiced quantity correctly"
This reverts commit a315487cea. Apparently it was 💩.
2015-10-12 09:55:18 +02:00
Nicolas Martinelli 2eade50d8e [FIX] purchase: missing depends
In case the product is a service, no move_ids are linked to it, and
the quantity delivered is never calculated.
2015-10-12 08:36:19 +02:00