Commit Graph
99161 Commits
Author SHA1 Message Date
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
Odoo Translation Bot ff9b997736 [I18N] Update translation terms from Transifex 2015-10-11 01:33:54 +02:00
Christophe Simonis 20dba161d0 [MERGE] forward port of branch 8.0 up to c484467 2015-10-10 14:46:23 +02:00
Christophe Simonis c4844675b8 [MERGE] forward port of branch saas-3 up to a6b11a1 2015-10-10 14:35:44 +02:00
Christophe Simonis a6b11a151e [MERGE] forward port of branch 7.0 up to f8b56e4 2015-10-10 14:25:35 +02:00
qdp-odoo 1c8f7b773e [FIX] stock_account: added a property for valuation journal, for yaml tests that needs to create accounting entries 2015-10-09 23:10:42 +02:00
qdp-odoo 7699cdb7cf [FIX] delivery: a test based on invoicing should be an AccountingTestCase 2015-10-09 23:10:42 +02:00
qdp-odoo ea06c3550e [FIX] purchase: fixed wrong test. The account on vendor bill should be the payable account of the partner, not the expense account of the product 2015-10-09 23:10:42 +02:00
qdp-odoo 80e050f306 [FIX] stock_account: do not create the property for stock input account for the product category 'All' because a categry does not inherit from its parent properties (anymore?). Fixes purchase test failing for companies running anglo saxon accounting 2015-10-09 23:10:42 +02:00
Xavier Morel 14d7e20def [FIX] project: don't copy remaining hours when duplicating tasks
Since we're not duplicating work items when duplicating tasks during
project duplication, it doesn't make sense to duplicate the
likely correspondingly adjusted remaining hour.

Behave as if the planned hours had just been set/reset and set the
remaining hours of the new task to that instead.

fixes #8985
2015-10-09 18:57:46 +02:00
Christophe Simonis 80bb106463 [IMP] base: only recompute share field on users when users are added/removed from group "Employee"
Note: The change in `base_security.xml` is needed as xmlid must exists
when adding/removing users from group to determine the value of `share`
field.

Also add a test to reassure @odony the function fields are correctly
recomputed for removed m2m entries (see http://git.io/vCqAG for context)
2015-10-09 16:57:18 +02:00