Commit Graph

91485 Commits

Author SHA1 Message Date
Olivier Dony 92c7874eb8 [FIX] account: indendation error in 82588fa
The original tax should not be included if
it was found in the tax mapping, even
if it has no replacement.

Fixes #2261 (hopefully, this time)
2014-10-29 19:42:13 +01:00
Christophe Simonis 8e637bac92 [MERGE] forward port of branch saas-3 up to 21b1203 2014-10-29 19:33:02 +01:00
Christophe Simonis 21b1203ee0 [MERGE] forward port of branch 7.0 up to 43db726 2014-10-29 19:05:43 +01:00
Simon Lejeune fe6eb853a5 [FIX] l10n_fr: "passif" part of the "bilan" report
Report's model was full, but not the view. Leftover of rev 7e8dcc5600
refactoring.
2014-10-29 18:50:30 +01:00
Christophe Simonis cc4fba6089 [IMP] core: manage registries via an LRU.
When working with a large number of databases, the memory allocated to
registries wasn't limited, resulting to waste memory (especially in the
longpolling worker, which is not recycled).
The size of the LRU is depending on the soft limit configured for
workers.
2014-10-29 18:28:07 +01:00
Jeremy Kersten 787147d52b [FIX] web_calendar: cast the id into int. When you open a form view in a popup via the attr 'event_open_popup', in some cases the id is a string and so the popup is empty... FIX #545 PR #551 2014-10-29 17:43:44 +01:00
Olivier Dony 82588faa71 [FIX] account: tax mapping logic was broken by 7508b7c
The original tax should not be applied
if at least one destination tax was
applied. It should only be applied if
explicitly included in target taxes.

(Re-)Fixes #2261
2014-10-29 16:44:55 +01:00
Andrea Stirpe 25bc377b05 [FIX] bus: useless setTimeout call
Partial backport of master fix eb52156
Solving javascript error after refresh in ie9 `Error: useless setTimeout call (missing quotes around argument?)`
2014-10-29 16:34:00 +01:00
Simon Lejeune a03e5c42ec [FIX] website_sale: usability fixes in the checkout/address form
* `disabled` on the country select tag instead of `readonly`
* `create a new address` selected when the user set an invalid shipping
address and must correct it. Else the user was correcting the shipping
address but the option "ship to the same address" was selected.
2014-10-29 16:06:10 +01:00
Simon Lejeune a644bbaec8 [FIX] website_sale: don't apply the company name as street logic in shipping address 2014-10-29 16:06:03 +01:00
Simon Lejeune ced8c3cf3f [FIX] website_sale: remove spurious print 2014-10-29 16:05:50 +01:00
Xavier Morel 28a69fa250 [ADD] doc: support for analytics keys 2014-10-29 15:53:41 +01:00
David Monjoie 27fa742a70 [FIX] purchase: translate purchaseorder and quotation reports 2014-10-29 11:23:34 +01:00
Mohammad Alhashash 43db7267c5 [FIX] stock: UoS quantity in stock.picking
Implements the UoS TODO items on stock.picking.do_partial() to fix #1432.
Add a new method _compute_uos_qty() on product.product to computes
product's invoicing quantity in UoS from quantity in UoM.

The created invoice will use the product_uos of the stock.move, meaning keeping
the quantity specified on the partial picking and the unit of measure of the
original stock.move (e.g. recieving 1 dozen from a 12 unit picking should either
get uos=dozen, uos_qty=1 or uos=unit, uos_qty=12, not a mix of both)

Fixes #1432, opw 611479
2014-10-29 10:10:50 +01:00
Denis Ledoux f01da83a5a [MERGE] forward port of branch 7.0 up to f4870f8 2014-10-28 17:58:50 +01:00
Denis Ledoux f4870f8418 [FIX] sale: when invoicing on lines, set order in progress when all lines invoiced
This fix is related to rev. b1df5aab6e
2014-10-28 17:57:08 +01:00
Frédéric Van der Essen 1b53469738 Merge pull request #1678 from sebalix/8.0-fix-web_diagram
[FIX] 8.0 web_diagram, unlink connectors/transitions between nodes from the diagram view
2014-10-28 17:15:50 +01:00
Xavier Morel ba55e31f57 [FIX] add charset declaration to dashboard.sass so sassc stops freaking out 2014-10-28 16:38:32 +01:00
Denis Ledoux b6c0e34b7b [FIX] account_analytic_plans: convert_ref method has been removed.
This issue is related to f4e350ca36
2014-10-28 16:19:57 +01:00
Denis Ledoux 663dc6a5b3 [MERGE] forward port of branch 7.0 up to b1df5aa 2014-10-28 15:37:11 +01:00
Julien Legros b1df5aab6e [FIX] sale: trigger all_lines signal when all lines are invoiced 2014-10-28 15:16:06 +01:00
Florian Kisser c6741fb537 [FIX] sql_db: don't log dsn with unmasked passwords
The dsn may contain the connection password of the database when not accessed from a psycopg connection object.
Replace the unfiltered logs to use cxn.dsn avoiding password leakage in logs.
Fixes #1433
2014-10-28 14:49:57 +01:00
Jeremy Kersten b95b134285 [FIX] website_blog: use related to display the image from the author from a blog without that the partner is 'website_published'. 2014-10-28 14:12:39 +01:00
Denis Ledoux 0021fa977d Revert "[FIX] mail: read more show original message"
This reverts commit 0790682296.

This fix is not yet ready. See PR #3295
2014-10-28 13:43:25 +01:00
Denis Ledoux a6024a6376 [MERGE] forward port of branch 7.0 up to 00ec786 2014-10-28 13:40:17 +01:00
Denis Ledoux 00ec786e48 [FIX] account: partner balance general totals
General totals were not computed at all, due to the condition "if not self.ids" which was always true as self.ids wasn't set.

Besides, a parameter allows to display only partner with balance greater than 0, which was completely ignored by the totals computation methods: The totals always included all partners, even those having balance equals to 0
2014-10-28 13:18:22 +01:00
Antonio Esposito a00de91001 [FIX] hr_timesheet_invoice: warning in report generation
When generating the report 'Timesheet Profit', got a warning "The domain term '('user_id', '=', [...])' should use the 'in' or 'not in' operator."
This warning is due to the use of the '=' operator to compare the field 'user_id' while the reports sends a list of ids.
Fallback to still accept a single id in case of customised reports.
2014-10-28 11:00:07 +01:00
Alexis de Lattre 4ff1c7c8b9 [IMP] l10n_fr: remove dependency on l10n_fr_rib
The RIB (relevé d’identité bancaire) is no longer used in France since 1st of August 2014 (replaced by SEPA).
2014-10-28 10:05:18 +01:00
Raphael Collet 8db5b84fc1 [FIX] fields: inherited fields should get 'string' from their parent field
Because some parameters of a field may be determined during its setup, we have
to update the corresponding column after the setup, and recompute _all_columns
to make it consistent.
2014-10-28 09:12:31 +01:00
Martin Trigaux 79787084ff [FIX] sale_margin: cost price uom
When computing the cost price to display, take the uom into account. The cost of 1 Unit or 1 dozen should not be the same. opw 599727
2014-10-27 18:09:46 +01:00
Fabien Meghazi 3e07eaa308 [FIX] Regression in image resize helper (Fixes #2529)
Commit 57ad514b makes the function preserve the aspect ration of the
original picture. Error of mine because the expected behavior was to
lose it for kanban view purpose.

For backward compatibility sake, this commit will keep the old behavior
by default.
2014-10-27 17:55:08 +01:00
Xavier Morel abfe20bff6 [ADD] doc: language switcher 2014-10-27 17:23:16 +01:00
Xavier Morel 4d2b24adcb [ADD] Stripe-style APIDoc: content 2014-10-27 17:23:16 +01:00
Alexis de Lattre eb8aad865e [FIX] Error in excel export when sheet name > 31 characters
XLWT only accepts sheet names smaller than 31 characters because that's the
excel limit.

Fixes #2548
Fixes #3318
2014-10-27 17:17:31 +01:00
Alexis de Lattre 7508b7cd9c [FIX] account: fiscal position may map single tax to multiple taxes
(This is a regression in Odoo 8)

It should now work when a fiscal position replaces 1 tax with
several taxes (for example : Fiscal position "Intra-EU B2B" in l10n_fr)

Fixes #2261, manual merge of PR #3316
2014-10-27 17:08:09 +01:00
Ravi Gohil d28cab5257 [FIX] stock: forbid adding new lines when processing picking
Source and destination locations are required and not displayed in the form view.
Adding new items when recieving a picking can not be easily guessed as we can put different locations for each line, using default locations may not be the expected result.
Instead should modify the original picking or create new one.
Fixes #2074, opw 612768
2014-10-27 14:37:36 +01:00
Raphael Collet 7b1ef7085a [IMP] fields: reduce the number of attributes on _column instances
This is a memory optimization: instead of setting all attributes on all
instances, set them with their default value on the class, and only set
specific ones on instances.  This reduces the memory footprint of around 14Mb
per registry with modules crm, sale, purchase and stock installed.
2014-10-27 14:36:09 +01:00
Antonio Esposito e9954cd9f9 [FIX] Fix for Issue 2716: Hide 'Print' button for the report 'Timesheet Profit'
The report 'Profit Timesheet' shouldn't be directly displayed in the views related to the model 'account.analytic.line' but only from the reporting menu. In facts the report requires a popup to specify the report parameters.

Fixes #2716
2014-10-27 14:28:23 +01:00
Martin Trigaux fcc59f12fc [FIX] product_visible_discount: use on_change result for product value
At the end of the onchange call product_id_change, the uom may have changed (e.g. if product in different category).
To compute the quantity, we need to use the new uom and not the first one (that may be Unit, default value)
2014-10-27 13:59:41 +01:00
Josse Colpaert b962c5810c Merge pull request #3321 from odoo-dev/8.0-wmsmrpfixes-jco
[FIX] When extra move for consumption lines, copy lot and when producing...
2014-10-27 13:29:00 +01:00
Denis Ledoux 96bcaadd46 [FIX] account: limit search for fields_view_get to one result
+ use ir.model.data get_object_reference method for better performance (cached result)

opw-616616
2014-10-27 13:24:47 +01:00
Denis Ledoux 0790682296 [FIX] mail: read more show original message
Instead of html cleaned html, to allow display blockquotes

opw-614729
2014-10-27 13:24:47 +01:00
Frederic van der Essen d68d1d0434 [FIX] web: cors rpc calls were missing the session cookie, resulting in new sessions being created for every call 2014-10-27 12:28:47 +01:00
Frederic van der Essen 230f55face [FIX] web: cors rpc calls were missing the session cookie, resulting in new sessions being created for every call 2014-10-27 12:21:04 +01:00
Martin Trigaux 339b549f41 Forward port of branch 7.0 up to rev 8abd003 2014-10-27 12:03:01 +01:00
Martin Trigaux 8abd003ef0 [FIX] product: reference in test 2014-10-27 11:41:23 +01:00
Martin Trigaux 9f5e989d5d Forward port of branch 7.0 up to 42bf0a5 2014-10-27 11:21:41 +01:00
Stéphane Bidoul 24ec228acc [FIX] avoid leaving dangling account moves when deleting a bank statement
Fixes #3292
2014-10-27 10:58:11 +01:00
Christophe Matthieu 59cda06b00 [FIX] website.sale: Double / triple digits do not get displayed correctly on ecommerce quantity selector 2014-10-27 10:24:13 +01:00
Christophe Matthieu c4ae1ef66d [FIX] account.fiscal.position: Fix get_fiscal_position for auto apply:
First match a fiscal position for the given country, then for a country
group containing the country. If none found, search a fiscal position
without country nor country group
2014-10-27 10:24:13 +01:00