Christophe Simonis [Fri, 31 Oct 2014 16:38:11 +0000 (17:38 +0100)]
[FIX] pad: hide navbar when passing in fullscreen mode
Géry Debongnie [Fri, 31 Oct 2014 08:43:56 +0000 (09:43 +0100)]
[FIX] updates the graph view documentation
It was wrong.
Xavier Morel [Thu, 30 Oct 2014 15:24:03 +0000 (16:24 +0100)]
[IMP] doc: link directly to edition mode in docfiles
Xavier Morel [Thu, 30 Oct 2014 15:18:52 +0000 (16:18 +0100)]
[IMP] doc: add link to company website in footer, fix release version
Xavier Morel [Thu, 30 Oct 2014 15:14:35 +0000 (16:14 +0100)]
[IMP] doc: link logo to current doc's root, not to odoo.com
Martin Trigaux [Fri, 31 Oct 2014 07:38:34 +0000 (08:38 +0100)]
[FIX] account: default partner format
When creating a new account.move.line, the computation of the default values should accept both `id` and `(id, name)` format.
The key partner_id may be containing a tuple so browsing should only be done on the first element of the tuple.
Fixes #3386
Simon Lejeune [Thu, 30 Oct 2014 14:50:45 +0000 (15:50 +0100)]
[FIX] packaging: debian: set /var/lib/odoo as odoo user home dir
Somesh Khare [Mon, 13 Oct 2014 12:24:25 +0000 (17:54 +0530)]
[FIX] account: domain on wrong field
The store recomputation method failed as the search was made comparing id of account.move.line to the account.journal values. Search was returing no result most of the time (opw 615554)
Fixes #2454
Raphael Collet [Thu, 30 Oct 2014 10:00:10 +0000 (11:00 +0100)]
[FIX] fields: make field.store=False on old-style function fields
Clarify the semantics of field attributes:
- field.store is True when the field is actually stored in the database;
- field.column is the column corresponding to field or None.
The various field definitions correspond to:
- new-style stored field: field.store and field.column
- new-style non-stored field: not field.store and not field.column
- old-style regular field: field.store and field.column
- old-style function field: not field.store and field.column
David Monjoie [Thu, 30 Oct 2014 10:19:18 +0000 (11:19 +0100)]
[FIX] purchase: fixed product_uom and price_unit update on product_id change on purchase.order_line form view
David Monjoie [Thu, 30 Oct 2014 11:25:13 +0000 (12:25 +0100)]
[FIX] report: fix report HTML editor scrollbar in Firefox
Jorge [Thu, 30 Oct 2014 11:04:42 +0000 (12:04 +0100)]
[FIX] website_sale: don't display twice some products
In list view, the 10 last products of a page were the 10 first products of the next page.
Fixes #3373
Christophe Simonis [Thu, 30 Oct 2014 10:05:07 +0000 (11:05 +0100)]
[FIX] core: correct cron thread registry iteration
Fixes #3387
Olivier Dony [Wed, 29 Oct 2014 18:42:13 +0000 (19:42 +0100)]
[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)
Christophe Simonis [Wed, 29 Oct 2014 18:33:02 +0000 (19:33 +0100)]
[MERGE] forward port of branch saas-3 up to 21b1203
Christophe Simonis [Wed, 29 Oct 2014 18:05:43 +0000 (19:05 +0100)]
[MERGE] forward port of branch 7.0 up to 43db726
Simon Lejeune [Wed, 29 Oct 2014 17:45:25 +0000 (18:45 +0100)]
[FIX] l10n_fr: "passif" part of the "bilan" report
Report's model was full, but not the view. Leftover of rev
7e8dcc5600b61d68af
refactoring.
Christophe Simonis [Wed, 29 Oct 2014 17:28:07 +0000 (18:28 +0100)]
[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.
Jeremy Kersten [Wed, 29 Oct 2014 16:43:44 +0000 (17:43 +0100)]
[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
Olivier Dony [Tue, 28 Oct 2014 12:30:26 +0000 (13:30 +0100)]
[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
Andrea Stirpe [Wed, 29 Oct 2014 11:54:52 +0000 (12:54 +0100)]
[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?)`
Simon Lejeune [Wed, 29 Oct 2014 12:31:52 +0000 (13:31 +0100)]
[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.
Simon Lejeune [Wed, 29 Oct 2014 12:27:15 +0000 (13:27 +0100)]
[FIX] website_sale: don't apply the company name as street logic in shipping address
Simon Lejeune [Wed, 29 Oct 2014 12:25:43 +0000 (13:25 +0100)]
[FIX] website_sale: remove spurious print
Xavier Morel [Wed, 29 Oct 2014 14:53:41 +0000 (15:53 +0100)]
[ADD] doc: support for analytics keys
David Monjoie [Wed, 29 Oct 2014 09:56:48 +0000 (10:56 +0100)]
[FIX] purchase: translate purchaseorder and quotation reports
Mohammad Alhashash [Tue, 21 Oct 2014 19:12:58 +0000 (21:12 +0200)]
[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
Denis Ledoux [Tue, 28 Oct 2014 16:58:50 +0000 (17:58 +0100)]
[MERGE] forward port of branch 7.0 up to f4870f8
Denis Ledoux [Tue, 28 Oct 2014 16:57:08 +0000 (17:57 +0100)]
[FIX] sale: when invoicing on lines, set order in progress when all lines invoiced
This fix is related to rev.
b1df5aab6e529e9667bb97c96c9196e1a4e5e0ce
Frédéric Van der Essen [Tue, 28 Oct 2014 16:15:50 +0000 (17:15 +0100)]
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
Xavier Morel [Tue, 28 Oct 2014 15:38:03 +0000 (16:38 +0100)]
[FIX] add charset declaration to dashboard.sass so sassc stops freaking out
Denis Ledoux [Tue, 28 Oct 2014 15:19:26 +0000 (16:19 +0100)]
[FIX] account_analytic_plans: convert_ref method has been removed.
This issue is related to
f4e350ca36668d13c9eb09fbf77c85df110ce40c
Denis Ledoux [Tue, 28 Oct 2014 14:37:11 +0000 (15:37 +0100)]
[MERGE] forward port of branch 7.0 up to b1df5aa
Julien Legros [Tue, 28 Oct 2014 14:12:53 +0000 (15:12 +0100)]
[FIX] sale: trigger all_lines signal when all lines are invoiced
Florian Kisser [Thu, 7 Aug 2014 10:33:03 +0000 (12:33 +0200)]
[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
Jeremy Kersten [Tue, 28 Oct 2014 13:12:39 +0000 (14:12 +0100)]
[FIX] website_blog: use related to display the image from the author from a blog without that the partner is 'website_published'.
Denis Ledoux [Tue, 28 Oct 2014 12:43:25 +0000 (13:43 +0100)]
Revert "[FIX] mail: read more show original message"
This reverts commit
0790682296e43989e4e232189009c3ba380e32ba.
This fix is not yet ready. See PR #3295
Denis Ledoux [Tue, 28 Oct 2014 12:40:17 +0000 (13:40 +0100)]
[MERGE] forward port of branch 7.0 up to 00ec786
Denis Ledoux [Tue, 28 Oct 2014 12:18:22 +0000 (13:18 +0100)]
[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
Antonio Esposito [Mon, 27 Oct 2014 12:00:18 +0000 (13:00 +0100)]
[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.
Alexis de Lattre [Mon, 27 Oct 2014 22:35:25 +0000 (23:35 +0100)]
[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).
Raphael Collet [Thu, 23 Oct 2014 09:14:52 +0000 (11:14 +0200)]
[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.
Martin Trigaux [Mon, 27 Oct 2014 17:02:59 +0000 (18:02 +0100)]
[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
Fabien Meghazi [Mon, 27 Oct 2014 16:55:08 +0000 (17:55 +0100)]
[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.
Xavier Morel [Mon, 27 Oct 2014 15:41:42 +0000 (16:41 +0100)]
[ADD] doc: language switcher
Xavier Morel [Mon, 20 Oct 2014 05:47:14 +0000 (07:47 +0200)]
[ADD] Stripe-style APIDoc: content
Alexis de Lattre [Mon, 27 Oct 2014 11:28:48 +0000 (12:28 +0100)]
[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
Alexis de Lattre [Mon, 27 Oct 2014 11:14:19 +0000 (12:14 +0100)]
[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
Ravi Gohil [Thu, 9 Oct 2014 11:21:29 +0000 (16:51 +0530)]
[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
Raphael Collet [Mon, 27 Oct 2014 13:08:08 +0000 (14:08 +0100)]
[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.
Antonio Esposito [Mon, 27 Oct 2014 11:13:18 +0000 (12:13 +0100)]
[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
Martin Trigaux [Mon, 27 Oct 2014 12:45:53 +0000 (13:45 +0100)]
[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)
Josse Colpaert [Mon, 27 Oct 2014 12:29:00 +0000 (13:29 +0100)]
Merge pull request #3321 from odoo-dev/8.0-wmsmrpfixes-jco
[FIX] When extra move for consumption lines, copy lot and when producing...
Denis Ledoux [Mon, 27 Oct 2014 12:23:16 +0000 (13:23 +0100)]
[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
Denis Ledoux [Sat, 25 Oct 2014 12:26:52 +0000 (14:26 +0200)]
[FIX] mail: read more show original message
Instead of html cleaned html, to allow display blockquotes
opw-614729
Frederic van der Essen [Mon, 27 Oct 2014 11:28:47 +0000 (12:28 +0100)]
[FIX] web: cors rpc calls were missing the session cookie, resulting in new sessions being created for every call
Frederic van der Essen [Mon, 27 Oct 2014 11:21:04 +0000 (12:21 +0100)]
[FIX] web: cors rpc calls were missing the session cookie, resulting in new sessions being created for every call
Martin Trigaux [Mon, 27 Oct 2014 11:03:01 +0000 (12:03 +0100)]
Forward port of branch 7.0 up to rev 8abd003
Martin Trigaux [Mon, 27 Oct 2014 10:41:23 +0000 (11:41 +0100)]
[FIX] product: reference in test
Martin Trigaux [Mon, 27 Oct 2014 10:21:41 +0000 (11:21 +0100)]
Forward port of branch 7.0 up to 42bf0a5
Stéphane Bidoul [Sat, 25 Oct 2014 13:19:20 +0000 (15:19 +0200)]
[FIX] avoid leaving dangling account moves when deleting a bank statement
Fixes #3292
Christophe Matthieu [Mon, 29 Sep 2014 08:32:00 +0000 (10:32 +0200)]
[FIX] website.sale: Double / triple digits do not get displayed correctly on ecommerce quantity selector
Christophe Matthieu [Mon, 29 Sep 2014 10:26:13 +0000 (12:26 +0200)]
[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
Christophe Matthieu [Mon, 29 Sep 2014 14:12:57 +0000 (16:12 +0200)]
[FIX] website_sale_options: only one optional product is added to the cart and the quantity of the optional product don't change in the cart when we click on more or less. Fix the number of items displayed in the modal options.
Christophe Matthieu [Tue, 30 Sep 2014 09:44:51 +0000 (11:44 +0200)]
[FIX] website: update jQuery.transfo lib + adapt code
Christophe Matthieu [Mon, 29 Sep 2014 15:12:49 +0000 (17:12 +0200)]
[FIX] product: is_product_variant is all time false. result: can not change ean because the field is hidden in the view. Need to overwrite the function field on product.product to have the real value (true for product.product)
Christophe Matthieu [Mon, 29 Sep 2014 14:04:03 +0000 (16:04 +0200)]
[FIX] website_sale: Postal Code is required during checkout for countries without postal codes; Zip must be not required.
Josse Colpaert [Sat, 25 Oct 2014 19:30:18 +0000 (21:30 +0200)]
[FIX] When extra move for consumption lines, copy lot and when producing more than produced, create extra move
Josse Colpaert [Fri, 24 Oct 2014 17:58:48 +0000 (19:58 +0200)]
Merge pull request #3294 from odoo-dev/8.0-fixextrapack-jco
[FIX] Operation does not necessary have product for extra move
Josse Colpaert [Fri, 24 Oct 2014 16:21:01 +0000 (18:21 +0200)]
[FIX] Operation does not necessary have product for extra move
Julien Legros [Fri, 24 Oct 2014 15:57:08 +0000 (17:57 +0200)]
[FIX] event_sale: event name carried over in invoice line
Julien Legros [Fri, 24 Oct 2014 15:55:42 +0000 (17:55 +0200)]
[FIX] event_sale: event tickets carried over on duplication
Julien Legros [Fri, 24 Oct 2014 14:40:25 +0000 (16:40 +0200)]
[FIX] mail: append messages at the right place
e6790ba introduced a bug where messages were always appended at the end
of the thread, potentially displaying them in the wrong order.
Christophe Simonis [Fri, 24 Oct 2014 15:25:19 +0000 (17:25 +0200)]
[MERGE] forward port of branch saas-3 up to 309ca4f
Martin Trigaux [Fri, 24 Oct 2014 14:07:55 +0000 (16:07 +0200)]
[FIX] product_visible_discount: discount with different unit of measures
The computation of the price without pricelist should take care of the unit of measure.
e.g. if computing discount for objects in dozen (on a product with price in unit), returned unit price should be (price*12) where 12 is the factor to go from dozen to unit.
Otherwise the compared prices (with and without pricelist) would not use the same unit of measure and the comparaison would be inconsistent. (opw 599727)
Martin Trigaux [Thu, 23 Oct 2014 15:14:19 +0000 (17:14 +0200)]
[FIX] product: pricelist, uom and price_surcharge
The price_surcharge attribute must be computed based on the reference unit of measure (divided by the factor).
This is to make sure than 12 units and 1 dozen have the same price after pricelist computation (opw 599727).
Added test checking the correctness of pricelist computation based on unit of measures.
Jeremy Kersten [Fri, 24 Oct 2014 15:01:49 +0000 (17:01 +0200)]
[ADD] web: add a route '/web/dbredirect' to ensure the connection to the right database via the get param db.
Christophe Simonis [Fri, 24 Oct 2014 14:52:10 +0000 (16:52 +0200)]
[MERGE] forward port of branch 7.0 up to d2fd05e
Samus CTO [Wed, 22 Oct 2014 09:40:09 +0000 (11:40 +0200)]
[IMP] config: Test that the config file is readable
Fixes #3237
cherry-pick of 8e72049
Simon Lejeune [Thu, 23 Oct 2014 09:13:08 +0000 (11:13 +0200)]
[FIX] Report: use ir.config 'report.url' key as base url if it exists
Browse ir.config 'report.url' with superuser as
the user may want to restrict access of this key to the public
Christophe Simonis [Mon, 6 May 2013 10:30:54 +0000 (12:30 +0200)]
[FIX] When using "--stop-after-init", set the return code correctly. A non zero return code reflect the number of databases that fail to load/update
Backport of
2c4e370b766db6280d38a4d3535e07de604b1922 and
33ce0e73dba7c23d004a278f61943be8052e7f37
Martin Trigaux [Fri, 24 Oct 2014 13:36:58 +0000 (15:36 +0200)]
[FIX] web: avoid incoherent actual_mode after refresh
When accessing an existing record in form mode directly (enter the url or refresh a page), the daterecord has not been initialized yet. This means that the value of actual_mode will be set to 'edit' before loading the current record (method _actualize_mode() called from do_show()).
This was problematic for one2many fields that we loaded in edit mode, showing add/delete icons/buttons in readonly views. (opw 607910)
Jeremy Kersten [Fri, 24 Oct 2014 09:59:23 +0000 (11:59 +0200)]
[IMP] res_country: add relation from country to group_country. The purpose of this patch is to allow in domain (model.country_id.country_group_ids, '=', 'Europe')
Christophe Matthieu [Fri, 24 Oct 2014 12:16:16 +0000 (14:16 +0200)]
[FIX] website_event_sale: display the discounted price in website.
Add price_reduce compute method on ticket and sale order line
Christophe Matthieu [Fri, 24 Oct 2014 09:33:15 +0000 (11:33 +0200)]
[FIX] website_mail: connected users can't follow a website document
Paulius Sladkevičius [Tue, 21 Oct 2014 15:50:28 +0000 (18:50 +0300)]
[FIX] Render of report shouldn't update context
With API 8 context is frozendict that don't support update
Christophe Simonis [Thu, 23 Oct 2014 14:52:37 +0000 (16:52 +0200)]
[MERGE] forward port of branch saas-3 up to 2c1bcfb
Denis Ledoux [Thu, 23 Oct 2014 14:40:53 +0000 (16:40 +0200)]
[FIX] calendar: avoid to pass ids as string to unlink and write methods
opw-616532: if the event is associated somehow to a workflow, an assert is done to check that element of the ids list are (int, long)
Simon Lejeune [Thu, 23 Oct 2014 13:41:48 +0000 (15:41 +0200)]
[FIX] account: tax report: translate account.tax.code according to context
As get_lines is called from the template, use a partial to embed the original context.
David Monjoie [Thu, 23 Oct 2014 12:40:29 +0000 (14:40 +0200)]
[FIX] website_sale: check the first product variant radio button in variants list by default to avoid users to click on Add to Cart without choosing any variant
Denis Ledoux [Thu, 23 Oct 2014 13:05:55 +0000 (15:05 +0200)]
[FIX] crm_partner_assign: colors only if there is a stage on the lead
Cedric Snauwaert [Thu, 23 Oct 2014 09:49:07 +0000 (11:49 +0200)]
[FIX] web: remove enforceFocus method from bootstrap modal since it is conflicting with other non bootstrap element
This method trigger the focus event when clicking inside the modal, causing a blur event on other widgets resulting in unwanted problem. Typical case is for the jquery datetimepicker where we try to open a select element which will close right after.
Julien Legros [Thu, 23 Oct 2014 12:31:06 +0000 (14:31 +0200)]
[MERGE] forward port of branch 7.0 up to 8e76938
Denis Ledoux [Thu, 23 Oct 2014 12:12:39 +0000 (14:12 +0200)]
[FIX] website_sale: right number of products in the page
The goal is to fill the page with at least 20 products and to fill all grid lines
Thus, the page should be filled with products until there are 20 products and all lines of the grid are full.
Julien Legros [Thu, 23 Oct 2014 11:45:11 +0000 (13:45 +0200)]
[FIX] web: correct display of dropdown arrows in ie11
Christophe Simonis [Thu, 23 Oct 2014 11:08:44 +0000 (13:08 +0200)]
[MERGE] forward port of branch saas-3 up to c89d1a0
Martin Trigaux [Thu, 23 Oct 2014 10:38:31 +0000 (12:38 +0200)]
[IMP] website: google maps url
Use the protocol as the current page to avoid warning with mixed content (loading map in http inside an https page)
Géry Debongnie [Thu, 23 Oct 2014 09:42:54 +0000 (11:42 +0200)]
[FIX] remove wrong filter (account)
For some reason, a filter was made on the non-existing field 'categ_id'.
Result: crash crash boom.
ssh-odoo [Fri, 19 Sep 2014 07:25:19 +0000 (12:55 +0530)]
[IMP] [TEST] website_forum: security fixes + tests
- fixed voting, karma check could be avoided
- fixed posting comments, now correctly checking karma (not for
notifications)
- fixed bootstraping of users, now not allowed to ask questions by default;
added validation email that gives the first karma points required to
participate
- added tests
David Monjoie [Wed, 22 Oct 2014 13:38:11 +0000 (15:38 +0200)]
[IMP] website_mail: actually render the html body of the template instead of escaping it