Fabien Pinckaers [Wed, 9 Jul 2014 16:48:25 +0000 (18:48 +0200)]
CSS Fix for Products in /shop
Christophe Matthieu [Wed, 9 Jul 2014 16:00:24 +0000 (18:00 +0200)]
Merge pull request #1001 from odoo-dev/master-fix-website_sale-double-price-chm
[FIX] website_sale: discount price is never hide
Raphael Collet [Wed, 9 Jul 2014 14:42:56 +0000 (16:42 +0200)]
Merge pull request #1037 from odoo-dev/8.0-accesserror-on-logaccess-rco
[FIX] models: store FailedValue in cache on log_access fields, too
Christophe Matthieu [Wed, 9 Jul 2014 14:10:08 +0000 (16:10 +0200)]
merge from 8.0
Christophe Matthieu [Wed, 9 Jul 2014 13:57:15 +0000 (15:57 +0200)]
Merge pull request #1036 from odoo-dev/8.0-fix-log-error-tour-chm
[FIX] tour.js: display a wrong error message when an error is detected with phantomjs test tour
Raphael Collet [Wed, 9 Jul 2014 13:34:51 +0000 (15:34 +0200)]
[IMP] models: iterating over record._cache also returns log_access fields
Raphael Collet [Wed, 9 Jul 2014 13:08:29 +0000 (15:08 +0200)]
[FIX] models: store FailedValue in cache on log_access fields, too
This should fix an issue discovered by tde when reading all fields on a record
on which you don't have access right:
- _read_from_database() fetches result and store it in cache
- read() retrieves values from cache, starting with field 'create_date'...
- ... which is not in cache, so prefetch that field, read it, which goes into
an infinite loop
The problem is that _read_from_database() finds out that you don't have access
on the record, and stores a FailedValue in cache on all fields... except magic
fields. Fix the problem by storing the FailedValue on all fields but 'id'.
Cédric Snauwaert [Wed, 9 Jul 2014 13:12:33 +0000 (15:12 +0200)]
Merge pull request #1034 from odoo-dev/8.0-hr-recruitement-onchange-fix-csn
[FIX]hr_recruitment: fix onchange_job user_id referenced before assignme...
Christophe Matthieu [Wed, 9 Jul 2014 12:58:19 +0000 (14:58 +0200)]
[FIX] tour.js: display a wrong error message when an error is detected with phantomjs test tour
Christophe Matthieu [Wed, 9 Jul 2014 11:52:14 +0000 (13:52 +0200)]
Merge pull request #999 from odoo-dev/8.0-test-ui-fixes-chm
[FIX] errors when the user click on a menu item; add menu items for product attributes
Cedric Snauwaert [Wed, 9 Jul 2014 09:15:19 +0000 (11:15 +0200)]
[FIX]hr_recruitment: fix onchange_job user_id referenced before assignment
Raphael Collet [Wed, 9 Jul 2014 08:56:55 +0000 (10:56 +0200)]
Merge pull request #1018 from odoo-dev/8.0-fix-display-name-rco
[FIX] models: wrong var used in _compute_display_name(), fixes issue #1002
Raphael Collet [Wed, 9 Jul 2014 08:26:01 +0000 (10:26 +0200)]
[FIX] models: wrong var used in _compute_display_name(), fixes issue #1002
Christophe Matthieu [Wed, 9 Jul 2014 07:43:02 +0000 (09:43 +0200)]
merge from 8.0
Xavier Morel [Wed, 9 Jul 2014 06:47:37 +0000 (08:47 +0200)]
[FIX] False module description blows up in docutils
fixes issue 1005
Raphael Collet [Tue, 8 Jul 2014 15:03:00 +0000 (17:03 +0200)]
[FIX] fetchmail: add api decorator on method connect() to fix issue #980
The method does not follow naming conventions. Therefore the "guessing" api
decorator picks the wrong method wrapper.
(Manual rebase of #1003)
Jeremy Kersten [Tue, 8 Jul 2014 15:33:00 +0000 (17:33 +0200)]
[IMP] Crm: Add tracking mixin to manage utm campaign and add this mixin to mass_mailing, crm_lead and sale_order
Raphael Collet [Tue, 8 Jul 2014 14:27:01 +0000 (16:27 +0200)]
Merge pull request #989 from odoo-dev/8.0-sql-models-rco
[FIX] models, fields: add model dependencies for models backed up by sql views
Raphael Collet [Tue, 8 Jul 2014 13:55:42 +0000 (15:55 +0200)]
[FIX] account_analytic_analysis: fix _depends
Raphael Collet [Tue, 8 Jul 2014 13:52:02 +0000 (15:52 +0200)]
[IMP] fields: improve code in former commit
Raphael Collet [Tue, 8 Jul 2014 13:47:44 +0000 (15:47 +0200)]
[IMP] fields: add missing case for invalidating fields, when path is None
Raphael Collet [Tue, 8 Jul 2014 13:32:38 +0000 (15:32 +0200)]
[IMP] addons: add _depends on models backed up by an sql view and used by other models
xmo-odoo [Tue, 8 Jul 2014 13:31:38 +0000 (15:31 +0200)]
Merge pull request #998 from xmo-odoo/8.0-module-descriptions-xmo
Don't include xml declaration when compiling rST module descriptions to HTML
Raphael Collet [Tue, 8 Jul 2014 12:52:23 +0000 (14:52 +0200)]
[IMP] models: add an extension mechanism for attribute _depends on models
Xavier Morel [Tue, 8 Jul 2014 12:39:24 +0000 (14:39 +0200)]
[FIX] compile of rst module descriptions to HTML
lxml (used by the html sanitizer) really does not like documents as unicode
strings with an encoding declaration (which doesn't make sense indeed), yet
docutils with output_encoding=unicode generates one (a stupid one too, says
"encoding=unicode").
Disable the xml declaration altogether when compiling rST module declarations
to HTML.
Raphael Collet [Tue, 8 Jul 2014 11:59:21 +0000 (13:59 +0200)]
Merge pull request #996 from odoo-dev/8.0-id-field-type-rco
[FIX] fields: add a type to field Id; this fixes #990
Raphael Collet [Tue, 8 Jul 2014 11:29:45 +0000 (13:29 +0200)]
[FIX] fields: add a type to field Id; this fixes #990
Raphael Collet [Tue, 8 Jul 2014 08:16:16 +0000 (10:16 +0200)]
[FIX] models, fields: add model dependencies for models backed up by sql views
Christophe Matthieu [Tue, 8 Jul 2014 07:12:17 +0000 (09:12 +0200)]
[FIX] product: add menu item to attributes and attribute values. Adding constraint to prevent deleting attributes with references to products.
Raphael Collet [Mon, 7 Jul 2014 18:37:11 +0000 (20:37 +0200)]
Merge pull request #976 from odoo-dev/8.0-fix-model-init-rco
[FIX] models: reorganize model instantiation
Christophe Matthieu [Mon, 7 Jul 2014 14:58:47 +0000 (16:58 +0200)]
[FIX] stock: update and request procurment button use active_id to se the product. Fix to use this buttons on product template.
xmo-odoo [Mon, 7 Jul 2014 14:15:23 +0000 (16:15 +0200)]
Merge pull request #970 from xmo-odoo/8.0-remove-unnecessary-listifications-xmo
Remove redundant calls to list()
xmo-odoo [Mon, 7 Jul 2014 14:15:02 +0000 (16:15 +0200)]
Merge pull request #969 from xmo-odoo/8.0-fix-weakset-listification-xmo
Unsafe listification of weakref in Python < 2.7.4
Christophe Matthieu [Mon, 7 Jul 2014 14:14:50 +0000 (16:14 +0200)]
[FIX] crm: missing image for description
Christophe Simonis [Mon, 7 Jul 2014 13:32:25 +0000 (15:32 +0200)]
[FIX] data-dir management
- sessions are now shared between series.
- use site data dir instead of user data dir if user has no home dir.
- in http and module handling, `data-dir` was used before being
initialized, using the default value instead of user input
(fixes #308, #904)
Raphael Collet [Mon, 7 Jul 2014 13:47:27 +0000 (15:47 +0200)]
[FIX] models: reorganize model instantiation, which was broken when adding custom fields
Olivier Dony [Mon, 7 Jul 2014 13:25:07 +0000 (15:25 +0200)]
[REL] 8.0 RC1
Christophe Matthieu [Mon, 7 Jul 2014 13:20:14 +0000 (15:20 +0200)]
[FIX] web_kanban_gauge: don't use fit=true for raphael.js because preserveAspectRatio svg attribute is wrong
Christophe Matthieu [Mon, 7 Jul 2014 12:58:12 +0000 (14:58 +0200)]
[FIX] web_diagram: don't try to load raphael.js lib. The lib is already loaded in the js asset
Raphael Collet [Mon, 7 Jul 2014 12:49:49 +0000 (14:49 +0200)]
Merge pull request #964 from odoo-dev/8.0-remove-getattr-rco
[REM] models: remove the magic methods signal_XXX()
jkei [Mon, 7 Jul 2014 12:24:05 +0000 (14:24 +0200)]
[FIX] account: typo in get_fiscal_position()
Fixes #971:
File "/Users/keje/src/odoo/addons/account/partner.py", line 107, in get_fiscal_position
return part.property_account_position.id
NameError: global name 'part' is not defined
Cédric Snauwaert [Mon, 7 Jul 2014 12:46:56 +0000 (14:46 +0200)]
Merge pull request #972 from odoo-dev/8.0-menubar-cosmetics-csn
[FIX]menu bar: clean up css and few cosmetics
krnkris [Mon, 7 Jul 2014 08:18:58 +0000 (10:18 +0200)]
[I18N] base: fix Hungarian translations
(Manual rebase of #956, pending update in Launchpad translations)
Cedric Snauwaert [Mon, 7 Jul 2014 09:48:31 +0000 (11:48 +0200)]
[FIX]menu bar: clean up css and few cosmetics
Xavier Morel [Mon, 7 Jul 2014 12:01:07 +0000 (14:01 +0200)]
[REM] unecessary calls to list()
* Either further operations don't really care (e.g. ``str.join`` takes any
iterable)
* Or they do their own seq (``browse`` calls ``tuple()`` on iterable params)
Xavier Morel [Mon, 7 Jul 2014 11:51:53 +0000 (13:51 +0200)]
[FIX] unsafe listification of weakref in Python < 2.7.4
Fixes #966
* As a preallocation optimization, ``list()`` calls ``__len__`` on its
parameter if it's available
* Before Python 2.7.4, WeakSet has a bug[0] where ``len()`` is unsafe: it is
done by iteration and weakrefs may be removed from the underlying set during
the iteration
As a result, the safety feature of listifying a WeakSet to ensure we have
strong refs on all items during iteration may blow up.
Wrapping the weakset in a ``iter()`` makes ``__len__()`` invisible and ensures
we're within the IterationGuard[1].
Which now that I think about it means we *should* be able to safely iterate
weaksets in the first place and may not have needed to listify them...
[0] http://bugs.python.org/issue14159
[1] http://hg.python.org/cpython/file/
b6acfbe2bdbe/Lib/_weakrefset.py#l58
xmo-odoo [Mon, 7 Jul 2014 11:23:50 +0000 (13:23 +0200)]
Merge pull request #967 from xmo-odoo/master-id-type-xmo
Raise exception when a DB request fetches ids it was not asked for
hugosdsantos [Wed, 2 Jul 2014 16:07:00 +0000 (17:07 +0100)]
[I18N] sale: fix pt translations
"Ordem de Vendas" changed to "Ordem de Venda"
(Rebase of PR #883)
Raphael Collet [Mon, 7 Jul 2014 11:12:37 +0000 (13:12 +0200)]
[FIX] signal_XXX -> signal_workflow: forgot quotes around signal name
Raphael Collet [Mon, 7 Jul 2014 09:50:30 +0000 (11:50 +0200)]
[REM] models: remove the magic methods signal_XXX()
Xavier Morel [Mon, 7 Jul 2014 07:59:05 +0000 (09:59 +0200)]
[IMP] raise exception when a DB request fetches ids it was not asked for
Likely caused by a type incoherence e.g. providing an id as string when the
table uses integer ids. Postgres performs an implicit conversion from string
to integer[0], this wasn't much of an issue in the old API, whatever cache was
there would simply not be used, but because the new API's cache is part of its
behavior it has a semantic impact and can lead to infinite recursion.
[0] more precisely from quoted value, which is untyped
xmo-odoo [Mon, 7 Jul 2014 07:50:48 +0000 (09:50 +0200)]
Merge pull request #926 from xmo-odoo/master-cleanup-gauge-xmo
Fix implicit globals in kanban_gauge JS
Raphael Collet [Sun, 6 Jul 2014 14:44:26 +0000 (16:44 +0200)]
[MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.
- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
Raphaël Valyi [Fri, 4 Jul 2014 03:45:33 +0000 (00:45 -0300)]
[IMP] account: add context in invoice onchange_partner_id method
(Manual rebase of PR #915)
Raphaël Valyi [Fri, 4 Jul 2014 02:58:15 +0000 (23:58 -0300)]
[IMP] purchase: add context in PO onchange_partner_id and onchange_dest_address_id
(Manual rebase of PR #913)
Olivier Dony [Sat, 5 Jul 2014 00:24:43 +0000 (02:24 +0200)]
[FIX] website_sale_delivery: bundlify JS file inclusion
Olivier Dony [Fri, 4 Jul 2014 23:45:45 +0000 (01:45 +0200)]
[MERGE] Forward-port saas-5 up to d9cda97
Olivier Dony [Fri, 4 Jul 2014 23:28:19 +0000 (01:28 +0200)]
[MERGE] Forward-port saas-4 up to 5ceded9
Olivier Dony [Fri, 4 Jul 2014 23:04:19 +0000 (01:04 +0200)]
[MERGE] Forward-port saas-3 up to 4fa30f5
Olivier Dony [Fri, 4 Jul 2014 21:56:22 +0000 (23:56 +0200)]
[FIX] mass_mailing: avoid mutable values for dict.fromkeys(), simplify with RIGHT JOIN
Olivier Dony [Fri, 4 Jul 2014 21:15:22 +0000 (23:15 +0200)]
[FIX] mass_mailing: wrong copy-paste of statistics computation code
Mixes the mass_mailing_id and mass_mailing_campaign_id
between the two models. Introduced by 9fc4ad9, PR #472
Olivier Dony [Fri, 4 Jul 2014 15:07:53 +0000 (17:07 +0200)]
[MERGE] Forward-port of 7.0 up to 64ac1b0
Olivier Dony [Fri, 4 Jul 2014 14:53:26 +0000 (16:53 +0200)]
[FIX] document: replace raw SQL constraint with bad parameter passing with builtin check_recursion
This instance was not actually exploitable for
SQL injection as it is not callable directly
via RPC and guarded by other queries when indirectly
called. Still plain awful.
Olivier Dony [Fri, 4 Jul 2014 14:45:41 +0000 (16:45 +0200)]
[FIX] hr_holidays: proper parameter passing syntax for raw SQL
This instance was not actually exploitable for
SQL injection as it is not callable directly
via RPC and guarded by other queries when indirectly
called. Still plain awful.
Thibault Delavallée [Fri, 4 Jul 2014 13:28:00 +0000 (15:28 +0200)]
[REV] Partial revert of search view changes: indeed the graph view is not already capable of handling group_by on any field, declaring them is still necessary.
Raphaël Valyi [Fri, 4 Jul 2014 02:39:40 +0000 (23:39 -0300)]
[FIX] purchase: order dest_address_id field is present twice in form view
Fixes issue #911
qdp-odoo [Fri, 4 Jul 2014 12:45:50 +0000 (14:45 +0200)]
[IMP] account: added a button on bank statements to see the journal items created as soon as some are created
Thibault Delavallée [Fri, 4 Jul 2014 12:36:21 +0000 (14:36 +0200)]
[FIX] web_kanban_sparkline, sales_team, stock: use char function field to transmit sparkline data; the data is now correctly dumped into json, and parsed in the widget.
Fabien Pinckaers [Fri, 4 Jul 2014 12:05:09 +0000 (14:05 +0200)]
Merge pull request #925 from xmo-odoo/master-concat-itertools-xmo
Replace NIH concat function
Martin Trigaux [Fri, 4 Jul 2014 12:02:04 +0000 (14:02 +0200)]
[FIX] l10n_multilang: reduce dependencies of l10n_multilang
The installation of a multilang localisation (e.g. Belgium) used to install as well account_accountant (and then account_voucher) for no technical reason and was considered as the full accounting package.
Martin Trigaux [Fri, 4 Jul 2014 10:20:51 +0000 (12:20 +0200)]
[FIX] views: when loading an action, the active_* parameters should overwrite previous context
qdp-odoo [Fri, 4 Jul 2014 09:07:23 +0000 (11:07 +0200)]
[IMP] account, account_cancel: added the possibility to cancel a single statement line when it has already been through the reconciliation process
Xavier Morel [Fri, 4 Jul 2014 09:03:31 +0000 (11:03 +0200)]
[FIX] web_kanban_gauge: bunch of implicit globals in JS code
Xavier Morel [Fri, 4 Jul 2014 08:58:41 +0000 (10:58 +0200)]
[IMP] replace a manual & eager concat by chain.from_iterable(iter) -> iter
Thibault Delavallée [Fri, 4 Jul 2014 07:28:55 +0000 (09:28 +0200)]
Merge pull request #638 from odoo-dev/master-improve-configuration-warnings-ssh
[IMP] account, account_voucher, google_drive, hr_timesheet, users: use redirectwarning instead of some warnings to ease the configuration process. Also fixed some css and js issues in the display of the redirect warning.
Thibault Delavallée [Fri, 4 Jul 2014 06:02:54 +0000 (08:02 +0200)]
[FIX] sale: sales_team: fixed use_quotations field named 'opportunities' instead of 'quotations', copy and paste error probably
JKE-be [Thu, 3 Jul 2014 21:13:44 +0000 (23:13 +0200)]
Merge pull request #909 from odoo-dev/saas-5-contactus-jke
[IMP] website_crm - cherry pick from
29ad0216e37fd23e33b75ee8d24b095f181...
JKE-be [Thu, 3 Jul 2014 20:56:06 +0000 (22:56 +0200)]
Merge pull request #906 from odoo-dev/saas-3-contactus-jke
[IMP] website_crm - cherry pick from
29ad0216e37fd23e33b75ee8d24b095f181...
JKE-be [Thu, 3 Jul 2014 20:55:32 +0000 (22:55 +0200)]
Merge pull request #907 from odoo-dev/saas-4-contactus-jke
[IMP] website_crm - cherry pick from
29ad0216e37fd23e33b75ee8d24b095f181...
Jeremy Kersten [Thu, 3 Jul 2014 19:55:29 +0000 (21:55 +0200)]
[IMP] website_crm - cherry pick from
29ad0216e37fd23e33b75ee8d24b095f181e2e31 - Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields.
Jeremy Kersten [Thu, 3 Jul 2014 19:39:19 +0000 (21:39 +0200)]
[IMP] website_crm - cherry pick from
29ad0216e37fd23e33b75ee8d24b095f181e2e31 - Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields.
Jeremy Kersten [Thu, 3 Jul 2014 19:33:53 +0000 (21:33 +0200)]
[IMP] website_crm - cherry pick from
29ad0216e37fd23e33b75ee8d24b095f181e2e31 - Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields.
qdp-odoo [Thu, 3 Jul 2014 11:33:48 +0000 (13:33 +0200)]
Merge pull request #840 from Bubbles-IT/fix-expected-list-statement-proposition
Problem during reconcilement of bank statement with an exact match.
Thanks Niels
Thibault Delavallée [Thu, 3 Jul 2014 11:19:13 +0000 (13:19 +0200)]
[FIX] marketing_campaign: reporting: use the menu already define in marketing module instead of re-adding a new menu.
ssh-odoo [Wed, 25 Jun 2014 06:09:36 +0000 (11:39 +0530)]
[Imp]:Improve configuration warning msg
[imp]:remove space
[rem]:remove code
[imp]:remove changes
[imp]:remove changes
[rem]:remove unused changes
Martin Trigaux [Thu, 3 Jul 2014 10:30:48 +0000 (12:30 +0200)]
[FIX] res_partner: backport of rev 37bf72a
Correctly take the 'use parent address' into account in the onchange. Slightly updated the view that was weird with this parameter. opw 609344
Parthiv [Thu, 3 Jul 2014 07:16:33 +0000 (12:46 +0530)]
[ADD] l10n_ae: new chart of accounts for U.A.E
(Manual rebase of PR #889)
Richard Mathot [Thu, 3 Jul 2014 07:36:46 +0000 (09:36 +0200)]
[TYPO] Stupid typo...
antonylesuisse [Wed, 2 Jul 2014 20:36:11 +0000 (22:36 +0200)]
Merge pull request #886 from odoo-dev/master-contactus-jke
[IMP] website_crm: allow contact_us to fill in any field
Fabien Pinckaers [Wed, 2 Jul 2014 18:34:21 +0000 (20:34 +0200)]
Merge pull request #885 from odoo-dev/master-shop-fp
Fixes for perf issues /shop + cleaning pricelists & currencies
odony [Wed, 2 Jul 2014 18:12:15 +0000 (20:12 +0200)]
Merge pull request #884 from rewritten/patch-1
[FIX] debian/control: add required python-pypdf package
Fabien Pinckaers [Wed, 2 Jul 2014 18:08:51 +0000 (20:08 +0200)]
fix
Jeremy Kersten [Wed, 2 Jul 2014 17:27:08 +0000 (19:27 +0200)]
[IMP] website_crm: Improve contact_us to fill in all fields from the model crm_lead posted in the form except a blacklist of fields.
xmo-odoo [Wed, 2 Jul 2014 17:28:24 +0000 (19:28 +0200)]
Merge pull request #881 from xmo-odoo/master-qweb-lxml-xmo
Convert qweb (Python) to use lxml
Fabien Pinckaers [Wed, 2 Jul 2014 17:20:30 +0000 (19:20 +0200)]
FIX
Fabien Pinckaers [Wed, 2 Jul 2014 17:03:10 +0000 (19:03 +0200)]
Speed Improvements
Fabien Pinckaers [Wed, 2 Jul 2014 16:35:09 +0000 (18:35 +0200)]
Speed Improvement: caching security
Fabien Pinckaers [Wed, 2 Jul 2014 16:18:29 +0000 (18:18 +0200)]
Fixes
Saverio Trioni [Wed, 2 Jul 2014 16:10:48 +0000 (18:10 +0200)]
Added required python-pypdf package
It's needed because
fc8592adf2f26bf35007d6cc625fb2005cd65b5d is now loading the `pyPdf` package.
Xavier Morel [Wed, 2 Jul 2014 16:00:03 +0000 (18:00 +0200)]
[FIX] don't call render_node on comments (or PIs)