Commit Graph
98995 Commits
Author SHA1 Message Date
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
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
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
Martin Trigaux 5bb9be5522 [FIX] fullfil -> fulfill 2015-10-09 16:50:45 +02:00
Denis Ledoux 326325a23f [FIX] project_issue_sheet: position of the analytic account in the issue form
The `analytic_account_id` was set after the field `active`.
This `active` field has been moved, to the top of the form,
in a button, at revision ed95043d7e.
Placing the analytic account after this field is
therefore no longer the brightest idea.

In addition, there is no longer any `parent_id` field
on the `account.analytic.account` model, making the according
domain invalid.

Fixes #8668
2015-10-09 15:57:10 +02:00
Martin Trigaux bcc136f3e5 [FIX] stock_picking_wave: typo in help message
Creating a en_US translation to avoid breaking existing translations
2015-10-09 15:53:14 +02:00
Aaron Bohy a99ae62239 [FIX] Packaging: package.py: default version set to 9.0
Fixes remaining occurences of 8.0 in the windows installer. Mainly, odoo is now
correctly installed in odoo.9.0-timestamp/ instead of odoo.8.0-timestamp/
2015-10-09 15:42:22 +02:00
Raphael Collet 061a1d7255 [IMP] fields: improve performance of method field.modified(records)
Reduce the number of calls to `search` by grouping fields by model and by path.
2015-10-09 15:22:10 +02:00
Martin Trigaux 15bdcafad7 [IMP] stock_picking_wave: unify action term 2015-10-09 14:56:35 +02:00
Denis Ledoux 56fa5e7913 [FIX] crm: Pipeline analysis, lost filter
The lost filter wasn't working:
 - The domain syntax was not correct
 - It tried to filter `active='f'` leads,
   while, in the SQL view, they were already filtered out
   with `active='t'`

We can safely remove the active=`t` from the SQL view, by default
`active='f'` records are filtered out except if explicitely set
otherwise.

opw-651746
2015-10-09 14:02:14 +02:00
Martin Trigaux d6b3924247 [I18N] export source terms
Hopefully one last time and not one more time...
2015-10-09 13:56:03 +02:00
Damien Bouvy a315487cea [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
Since invoice quantities are computed from the invoice lines linked to the so line via a many2many field, we need to overload the refund function that adds the fields on the invoice lines; explicitly copying the sale order lines references.
2015-10-09 11:36:57 +02:00