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
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
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 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
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)
Antony Lesuisse [Wed, 2 Jul 2014 15:52:34 +0000 (17:52 +0200)]
[IMP] point-of-sale, customer selection, remove dead code
Christophe Matthieu [Wed, 2 Jul 2014 15:35:09 +0000 (17:35 +0200)]
Merge pull request #855 from odoo-dev/master-enable-test-chm
[FIX] website_sale_options: enable tour test; close and return error log without throw error.
Richard Mathot [Wed, 2 Jul 2014 15:29:13 +0000 (17:29 +0200)]
[FIX] RML reporting: understandable crash message
When tag <drawString> is misused in an RML report, logs a more explicit
error
Christophe Matthieu [Wed, 2 Jul 2014 15:06:25 +0000 (17:06 +0200)]
[IMP] tour.js: add return when calling error to stop the tour.
Martin Trigaux [Wed, 2 Jul 2014 14:25:24 +0000 (16:25 +0200)]
[FIX] website: avoid divisions by zero when no record to display
Xavier Morel [Wed, 2 Jul 2014 14:01:36 +0000 (16:01 +0200)]
[IMP] convert qweb to use lxml instead of minidom
should be >20x faster at parsing document strings and gain close to 40s on crawling
Fabien Meghazi [Wed, 2 Jul 2014 13:45:28 +0000 (15:45 +0200)]
[FIX] The documentation stored in /dev/null states t-css|t-js
Thibault Delavallée [Wed, 2 Jul 2014 13:35:45 +0000 (15:35 +0200)]
Merge pull request #870 from odoo-dev/master-harmonize-kanban-view-rba
[IMP] crm, gamification, hr_recruitment, project, sales_team, stock: light kanban view harmonization.
Main changes :
- slight harmonization: bold centered titles, aliases display if left and right parts defined
- remove ".oe.e .oe_alias" classes + use of old icons; use fontawesome instead in the various kanban view
- regenerated the css for job position (weird indentation issues)
Lionel Sausin (Numérigraphe) [Sat, 31 May 2014 17:00:34 +0000 (19:00 +0200)]
[FIX] Fixes #273: avoid double-warning when changing the quantity of a stock move
Olivier Dony [Wed, 2 Jul 2014 13:18:56 +0000 (15:18 +0200)]
[FIX] web: force seession context reload when reloading client
The goal is to ensure that HTTP requests
done while reloading the client (e.g. the
menu bar, etc.) do not use a deprecated
session context.
Also undo the previous fix from a0ee2b5
as it would cause other issues (e.g.
prevent setting the admin password/lang
when creating a new db using the db manager)
This logic does not belong in the business
methods of res.users.
Frederic van der Essen [Wed, 2 Jul 2014 13:04:53 +0000 (15:04 +0200)]
Merge branch 'master' into master-pos-restaurant-fva
Frederic van der Essen [Wed, 2 Jul 2014 13:04:18 +0000 (15:04 +0200)]
[FIX] point_of_sale: typo in the template field blocked the point of sale launch
Frederic van der Essen [Wed, 2 Jul 2014 13:01:55 +0000 (15:01 +0200)]
[IMP] point_of_sale: load assets with templating sytem so that scripts are not minified in debug mode
Christophe Matthieu [Wed, 2 Jul 2014 12:52:45 +0000 (14:52 +0200)]
[FIX] website: blog and event must be tested with admin login
rba-odoo [Tue, 1 Jul 2014 07:35:27 +0000 (13:05 +0530)]
[IMP]kanban View: harmonize kanban view by changing head as bold and centered and aliases as centered
Christophe Matthieu [Wed, 2 Jul 2014 12:45:37 +0000 (14:45 +0200)]
[FIX] website_sale: change picture in function of the product selected
Richard Mathot [Wed, 2 Jul 2014 12:33:36 +0000 (14:33 +0200)]
[IMP] auth_oauth: avoid invalid providers
Christophe Matthieu [Wed, 2 Jul 2014 12:09:57 +0000 (14:09 +0200)]
[FIX] website: enable test for blog, event...
Richard Mathot [Wed, 2 Jul 2014 12:07:52 +0000 (14:07 +0200)]
[FIX] auth_oauth: hide invalid providers from login screen
Frederic van der Essen [Wed, 2 Jul 2014 12:05:45 +0000 (14:05 +0200)]
Merge branch 'master' into master-pos-restaurant-fva
Richard Mathot [Wed, 2 Jul 2014 11:56:11 +0000 (13:56 +0200)]
[FIX] auth_oauth: prevent crash on login screen
Empty URLs for OAuth providers do not crash anymore the login screen
Christophe Matthieu [Wed, 2 Jul 2014 11:54:57 +0000 (13:54 +0200)]
[FIX] website: customize menu stay empty if it's open to quick. Don't throw an exception when the tour have an error: log error and close tour.