Commit Graph

91103 Commits

Author SHA1 Message Date
xmo-odoo c85547477c [FIX] doc readme: the list of versions uses commas
it's not space-separated
2014-09-29 13:40:10 +02:00
xmo-odoo 7ae756fab2 Merge pull request #2766 from Nick-OpusVL/patch-1
Fix spelling error of Human Resources
2014-09-29 13:37:55 +02:00
Nick-OpusVL 80cfac727b Fix spelling error of Human Resources 2014-09-29 12:20:30 +01:00
Simon Lejeune c41c5e1b89 [FIX] package: last fedora epel repo 2014-09-29 11:54:30 +02:00
Thibault Delavallée dce983dea0 [IMP] website_sale: confirm quotation only when the payment is done, not directly when hitting 'pay now'. 2014-09-29 11:12:37 +02:00
Denis Ledoux 428cb3fb13 [FIX] purchase: payment_term_id twice in the view
+ replace widget selection by options no_open no_create
2014-09-29 10:49:01 +02:00
Olivier Dony 6f64325225 [FIX] website: restore compatibility with RC1 templates for commit 77c41cc5cb 2014-09-29 10:18:11 +02:00
Denis Ledoux edf679cfab [REVERT] tests added in forward port e2e60bf4eb
This is related to the revert 333852e19d
2014-09-26 22:23:46 +02:00
Denis Ledoux 07ee2a1de9 [MERGE] forward port of branch saas-3 up to 39bb45a 2014-09-26 21:58:06 +02:00
Denis Ledoux 39bb45a8ea [MERGE] forward port of branch 7.0 up to 333852e 2014-09-26 21:32:40 +02:00
Denis Ledoux 333852e19d Revert "[FIX] product,float_utils: perform ceiling via float_round with new rounding_method UP"
This reverts commit d4972ffdb6.

Seems to break some cases, at least in _product_reserve from stock/stock.py

Actual use case:

SELECT product_uom, sum(product_qty) AS product_qty FROM stock_move WHERE location_dest_id=%s AND location_id<>%s AND product_id=3645 AND state='done' GROUP BY product_uom;
returning 1 | 6

SELECT product_uom,-sum(product_qty) AS product_qty FROM stock_move WHERE location_id=%s AND location_dest_id<>%s AND product_id=%s AND state in ('done', 'assigned') GROUP BY product_uom;
returning 1 | -6

results += cr.dictfetchall()
    total = 0.0
    results2 = 0.0
    for r in results:
        amount = uom_obj._compute_qty(cr, uid, r['product_uom'], r['product_qty'], context.get('uom', False))
        results2 += amount
        total += amount
Total = 1, amount = -5

It should actually be
Total = 0, amount = -6
2014-09-26 21:21:06 +02:00
Martin Trigaux ceff8ef899 [IMP] account: use float_compare for taxes
Avoiding some python float representation errors
2014-09-26 16:57:28 +02:00
Christophe Matthieu 77c41cc5cb [FIX] website: 'Display Editor Bar on Website' group stopped working at commit a2ef044c47
The Edit button never appeared anymore for these users.
The idea was that they should see an edit button with
limited editing capabilities depending on their other
access rights.
For example, someone with only Sales Manager access and
'Display Editor Bar on Website'
would be able to edit online quotes from the website_quote
module, but not change the actual website pages or menus,
for instance.
2014-09-26 16:50:34 +02:00
Olivier Dony dd2f229153 [FIX] website_sale: avoid subscribing the website user (Public) to all shop orders
Especially as this user does not have a valid email, which
could prevent notifications to reach other followers.
2014-09-26 16:13:56 +02:00
Denis Ledoux 4441a0088f [MERGE] forward port of branch 7.0 up to cac6a26 2014-09-26 16:06:22 +02:00
Denis Ledoux cac6a261fe [FIX] project_mrp: task description duplicated + product name translation 2014-09-26 16:05:16 +02:00
Olivier Dony b2b3d629f9 [FIX] website_sale: auto-confirm free orders upon cart validation
Orders are normally confirmed when the payment transaction
is processed, but there is no transaction for free orders.
This caused them to stay in draft until manually cancelled.
2014-09-26 14:36:59 +02:00
Jérome Maes db8035658d [FIX] im_odoo_support : fix event triggered to bind event on dropdown usermenu item. 2014-09-26 14:27:18 +02:00
Christophe Simonis a3704beefb [FIX] base: correct non-copy of `login_date` + adapt tests 2014-09-26 13:54:37 +02:00
Christophe Simonis e2e60bf4eb [MERGE] forward port of branch saas-3 up to fe8106f 2014-09-26 12:53:59 +02:00
Christophe Simonis fe8106fb85 [MERGE] forward port of branch 7.0 up to af37b30 2014-09-26 12:33:17 +02:00
Jérome Maes 4b8b2e8dfe [ADD] im_odoo_support : add the module for the live odoo support from all instances. This sets the bus and im_chat module auto installable. 2014-09-26 12:18:00 +02:00
Jérome Maes 17b486f6f9 [FIX] im_chat, im_livechat : fix the loading history for anonymous user and remove useless search_user_status rpc call. 2014-09-26 12:17:59 +02:00
Géry Debongnie 0305010f2f [FIX] fix context problem in graph view
The group_by query expects the context to have group_by_no_leaf = true,
so we can not just blindly forward the context to the groupby query.
This is a defensive way to fix the problem, to avoid other possible
crashes.  But the context shouldn't have group_by_no_leaf anyway,
it does not make sense to explicitely do that in the action
2014-09-26 11:43:59 +02:00
Denis Ledoux af37b3022b [FIX] cron: doall false by default
As in most cases, we do not want this doall
2014-09-26 10:17:50 +02:00
Fekete Mihai 57869b9001 Modify General Ledger report to be printed on landscape if set in wizard. 2014-09-26 09:54:31 +03:00
Denis Ledoux 074c7b6c25 [FIX] res_users: do not copy login_date when duplicating users 2014-09-25 17:00:59 +02:00
Simon Lejeune 77f86f1591 [FIX] payment: transaction formview display issue
Using group without defining the col attribute will let the form
renderer choose the right display to avoid screwing up the layout
2014-09-25 16:58:53 +02:00
Ronak Baxi 8dd4c83d9c [FIX] Error when installing module document 2014-09-25 16:33:17 +02:00
Denis Ledoux c8f1bebcc5 [FIX] website_sale: free carts were not confirmed 2014-09-25 16:25:43 +02:00
Raphael Collet 942bbad2df [FIX] account_voucher: use resolve_2many_commands() instead of buggy-hand-written function 2014-09-25 16:22:55 +02:00
Raphael Collet b3a74f3749 [FIX] account_voucher: do not unlink records in onchange method
The method recompute_voucher_lines() is used by several onchange methods of
account.voucher.  It used to unlink() the voucher lines before recomputing new
voucher lines.  As a side effect, if you edit a voucher and discard your
changes, your voucher has lost its lines, although you did not save your
changes!  Moreover, the call to unlink() is invalidating the record cache,
which screws up completely the onchange() method.

So, instead of unlinking the existing lines, the onchange generates commands
[(2, id), ...] to remove the existing lines only when saving the changes.
2014-09-25 15:37:50 +02:00
Denis Ledoux 76067367b2 [MERGE] forward port of branch 7.0 up to 5f6d324 2014-09-25 15:10:37 +02:00
Martin Trigaux 932eccc7a7 [FIX] payment_ogone: last commit 2014-09-25 15:07:07 +02:00
Wolfgang Taferner 29fefafcd6 [FIX] paymnet_ogon: add missing SHA OUT keys
The SHA OUT list was incomplete and therefore SHASIGN was not matching anymore
List of keys from https://viveum.v-psp.com/Ncol/Viveum_e-Com-BAS_EN.pdf
2014-09-25 15:01:16 +02:00
Simon Lejeune 5f6d324db6 [FIX] crm: merge the phonecalls during an opportunities merge 2014-09-25 13:40:45 +02:00
Christophe Simonis 7b17133b53 [FIX] portal_sale: force empty context
The context was removed by 1933e926.
2014-09-25 11:51:15 +02:00
Jamin Shah ff5e7a749c [IMP] website_sale : avoid duplicated order lines
Add line id to while calling _cart_update() from sale_get_order()
The missing line_id parametre was making the _cart_find_product_line() call to fail as it was linked to an option while searching for lines without options (making the method recreate new lines).
Fixes #2573
2014-09-25 11:31:49 +02:00
Ajay Patel 8950153555 [FIX] website: prevent t-field on selection fields
This quick fix avoids a buggy behaviour in version 8.0 that could
confuse users.

A future version should implement properly selection fields in t-field.

(closes #2490)

(cherry picked from commit fe3cac30e4c5c132da1de02576d4aa325979ccd9)
2014-09-25 10:43:55 +02:00
Raphael Collet 330a3ff6ea [IMP] models: when checking for data in a table, do not use column 'id'
Replace the query "SELECT min(id) FROM xxx" by "SELECT 1 FROM xxx LIMIT 1".
Both requests are as efficient, and the second one does not crash if column
'id' is missing.
2014-09-25 10:37:28 +02:00
Raphael Collet 1f15055de3 [FIX] fields: a function field with fnct_search should be searchable 2014-09-24 18:41:20 +02:00
Cedric Snauwaert aa6af7608a [FIX] css: overflow-x: auto should be on modal-body 2014-09-24 17:40:21 +02:00
Simon Lejeune 176404dd14 [FIX] Report: attachment_use need attachment 2014-09-24 17:33:00 +02:00
Martin Trigaux 81f56c9eda [IMP] crm: remove TODO posted by past me 2014-09-24 17:19:22 +02:00
Cedric Snauwaert 311c77bb88 [FIX] product: _compute_qty: first round before ceiling, to avoid pathological cases
Fixes problem when we try to sell 12 units of a product and change it to 1 dozen,
the algorithm was then trying to recompute the original amount and was getting
12,0000048 as a result which was then passed to the ceiling method, getting 13.0!

See also previous commit and issue #1125, PR #1126
2014-09-24 17:11:26 +02:00
Cedric Snauwaert d4972ffdb6 [FIX] product,float_utils: perform ceiling via float_round with new rounding_method UP
Modified product ceiling() to use float_round() with special mode
for rounding UP (away from zero), avoiding pathological cases where
float representations errors were ceiling to the superior unit.

Also added correspding tests for rounding_method=UP

Fixes issue #1125, and replaces PR #1126.
2014-09-24 17:11:25 +02:00
Martin Trigaux 0c36f8a4ce Forward port of branch 7.0 up to 1933e92 2014-09-24 17:10:14 +02:00
Martin Trigaux 1933e926ff [INP] portal_sale: remove buggy context
Even if this should never be used in normal portal environment, if a user with enough access rights tries to create an invoice, this would crash. We don't need context here (opw 612591).
2014-09-24 17:00:24 +02:00
Simon Lejeune 5936a5c4a6 [FIX] Report: attachment and attachment_use: fix logic
Previously, attachment and attachment_use were only functionnal when used
simultaneously. The code did not consider the fact that the user may want
an historic of all the printed reports. This commit allow the use of
attachment without attachment_use.

It also tell explicitely qweb to generate the branding (used to separate
reports from a unique html when printing multiple reports). Before, it was
functional only when website was installed, because we forced 'editable' that
only has meaning in website.
2014-09-24 16:48:39 +02:00
Guewen Baconnier b5c8ced8ec [IMP] stock: Optimize stock_move.setlast_tracking()
When setlast_tracking is called on a large number of moves in a picking
(e.g.  when splitting moves in a picking), the time to complete grows
exponentially.  The reason is that it loops over all the moves of
a picking, even if it keeps only the last tracking.

The method now uses a search() with a limit so it doesn't need to browse
all the moves.

Added test to check the behaviour of setlast_tracking
Fixes #2448
2014-09-24 16:41:29 +02:00