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
Jeremy Kersten [Wed, 9 Jul 2014 15:45:40 +0000 (17:45 +0200)]
[IMP] website_sale: Add google analytics on checkout process
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
Martin Trigaux [Wed, 9 Jul 2014 14:42:22 +0000 (16:42 +0200)]
[FIX] mass_mailing: load images in emails
The emails containing emails generated with the image widget have absolute path (src='/website/static/...'), adding <base> tag allows the mail client to load it correctly.
Christophe Matthieu [Wed, 9 Jul 2014 14:10:08 +0000 (16:10 +0200)]
merge from 8.0
Christophe Matthieu [Wed, 9 Jul 2014 14:03:54 +0000 (16:03 +0200)]
[FIX] website: error for rendering of the sitemap template. qweb can't render the xmlns attribute.
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
Christophe Matthieu [Wed, 9 Jul 2014 11:30:17 +0000 (13:30 +0200)]
Merge pull request #1021 from odoo-dev/saas-5-fix-routing-for-index-chm
[FIX] website: if the first menu referred to a website page and the route for this path is overwritten, the route is not used, the template has not the values of the route. (e.g. contact-us menu in first position if website_crm is installed)
[FIX] website_crm: the path '/crm/contactus' have an error if you doesn't use the website contact form or if you reload the page, instead of redirect to contact form.
Martin Trigaux [Wed, 9 Jul 2014 11:20:48 +0000 (13:20 +0200)]
[FIX] product: allow user to set price at template creation
The lst_price field on product.template is a related to list_price. As we do not allow to set a value for related fields at creation (see orm.py , L4180), we display the list_price instead (float field).
On the product.product form, we display the lst_price (function field, readonly) as we don't want to allow changing the template price from the product. opw 609497
Cédric Snauwaert [Wed, 9 Jul 2014 10:03:18 +0000 (12:03 +0200)]
Merge pull request #1028 from odoo-dev/master-hr-recruitement-onchange-fix-csn
[FIX]hr_recruitment: fix onchange_job user_id referenced before assignme...
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
Christophe Matthieu [Wed, 9 Jul 2014 08:45:35 +0000 (10:45 +0200)]
[FIX] website_crm: the path '/crm/contactus' have an error if you does'nt use the website contact form or if you reload the page, insead of redirect to contact form.
Christophe Matthieu [Wed, 9 Jul 2014 08:39:00 +0000 (10:39 +0200)]
[FIX] website: if the first menu refered to a website page and the route for this path is overwrited, the route is not used, the template has not the values of the route. (e.g. contact-us menu in first position if website_crm is installed)
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)
Olivier Dony [Tue, 8 Jul 2014 15:44:40 +0000 (17:44 +0200)]
[FIX] account_analytic_account: handle partners without fiscal position gracefully
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
qdp-odoo [Tue, 8 Jul 2014 14:04:09 +0000 (16:04 +0200)]
Changed the type of fields.date_order on purhcase.order object from date to datetime
Martin Trigaux [Tue, 8 Jul 2014 13:56:24 +0000 (15:56 +0200)]
[FIX] orm: better removal of custom m2m fields
orm: do not try to create ir.model.relation for custom m2m as self._module is either empty (for custom models), either the one of the last inheriting module (which is wrong). The field should be removed manually and should not be impacted by the uninstallation of modules. The removal of the relation table can be done when removing manually the custom field (see rev 6af3193).
ir.model: when removing a model, drop the table with the CASCADE instruction. This will remove left constraints from remaining m2m tables.
This means that dropping a table (either manually removing a custom model or uninstalling a module) will not drop the relation table for a custom m2m field. This is not ideal but better than the previous behaviour (which was to fail the DROP TABLE instruction and keep the table with a few columns and unconsistent data).
Raphael Collet [Tue, 8 Jul 2014 13:55:42 +0000 (15:55 +0200)]
[FIX] account_analytic_analysis: fix _depends
Jeremy Kersten [Tue, 8 Jul 2014 13:54:00 +0000 (15:54 +0200)]
[FIX] Crm partner assign: Sort the partners by grade / published implemented. else the display are not explicit on website, because old order takes all the implemented partner but on website we display the number of reference published
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.
sle-odoo [Tue, 8 Jul 2014 12:29:38 +0000 (14:29 +0200)]
Merge pull request #993 from odoo-dev/saas-5-issue-902
[MERGE][FIX] product: incomplete declaration of report pricelist
Thibault Delavallée [Tue, 8 Jul 2014 12:19:33 +0000 (14:19 +0200)]
[FIX] mail: issue of action_id used before being defined. My bad.
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
Martin Trigaux [Tue, 8 Jul 2014 11:55:48 +0000 (13:55 +0200)]
[FIX] ir.model.fields: better unlink
When droping a column, remove also the relation table in case of custom m2m field.
The relation table needs to be dropped otherwise an unremovable constraint to the targetted table is kept (and anyway is not needed anymore).
Raphael Collet [Tue, 8 Jul 2014 11:29:45 +0000 (13:29 +0200)]
[FIX] fields: add a type to field Id; this fixes #990
Thibault Delavallée [Tue, 8 Jul 2014 11:13:07 +0000 (13:13 +0200)]
Merge pull request #936 from odoo-dev/master-send-failmail-warning-avo
[IMP] mail: store the reason when failing to send an email; usability improvements in configuration, now showing the number of failed emails + links for easier configuration.
Amit Vora [Tue, 20 May 2014 11:04:19 +0000 (16:34 +0530)]
[IMP ]add failure_reason field and counting number of fail mail
[IMP] improve help and change field name fail_mail to fail_counter and change method name of counting fail mail
Atul Patel [Tue, 8 Jul 2014 10:41:28 +0000 (16:11 +0530)]
[FIX]product: disable menu name come from report declaration.because it's called from wizard
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.
antonylesuisse [Mon, 7 Jul 2014 18:48:19 +0000 (20:48 +0200)]
Merge pull request #946 from joshuajan/7.0_hr_holidays_report_fix
skip the inactivate employee in leaves summary
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
Fabien Meghazi [Thu, 8 May 2014 07:50:25 +0000 (09:50 +0200)]
[FIX] configuration file dbfilter's option has no effect
lp bug: https://launchpad.net/bugs/940439 fixed
bzr revid: fme@openerp.com-
20140508075025-yszqmzie1z4n7l4j
Martin Trigaux [Mon, 7 Jul 2014 15:12:27 +0000 (17:12 +0200)]
[FIX] portal: avoid errors during autovacuum
When the cron for autovacuum runs, the osv_memory objects are deleted. The portal.wizard.user object has a required field (wizard_id) linked to another osv_memory object (portal.user) which causes a traceback when the cron tries to delete portal.user object before the portal.wizard.user. opw 609918
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.
Christophe Combelles [Mon, 7 Jul 2014 14:29:11 +0000 (17:29 +0300)]
[FIX] Fix broken translation cache for absent translation of 'false'
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
Fabien Meghazi [Mon, 7 Jul 2014 13:50:20 +0000 (15:50 +0200)]
Merge pull request #975 from odoo-dev/master-bundlification-remains-fme
[IMP] bundlification remains for website_* addons
Only done for public pages at first.
Added a custom special bundle for forum.
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:32:47 +0000 (15:32 +0200)]
[MERGE] Fwd-port 8.0 up to 139d868
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
Fabien Meghazi [Mon, 7 Jul 2014 12:39:17 +0000 (14:39 +0200)]
Load blog discussion template only when widget is instanciated
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
JoshuaJan [Mon, 7 Jul 2014 10:17:20 +0000 (18:17 +0800)]
Update holidays_summary_report.py
xmo-odoo [Mon, 7 Jul 2014 10:04:45 +0000 (12:04 +0200)]
Merge pull request #893 from nafex/patch-1
[FIX] missing quotation mark in ir.model.access.csv
Raphael Collet [Mon, 7 Jul 2014 09:50:30 +0000 (11:50 +0200)]
[REM] models: remove the magic methods signal_XXX()
JoshuaJan [Mon, 7 Jul 2014 09:30:25 +0000 (17:30 +0800)]
Update holidays_summary_report.py
Add context to search method
Raphael Collet [Mon, 7 Jul 2014 09:23:06 +0000 (11:23 +0200)]
Revert "[IMP] addons: use the magic methods signal_XXX() instead of signal_workflow('XXX')"
This reverts commit
beea451e547e3f56c477459c6d0e6dbbb8d712bc.
Raphael Collet [Mon, 7 Jul 2014 08:58:55 +0000 (10:58 +0200)]
Merge pull request #957 from odoo-dev/master-signal-workflow-rco
[IMP] addons: use the magic signal_XXX() instead of signal_workflow('XXX')
Fabien Meghazi [Mon, 7 Jul 2014 08:39:10 +0000 (10:39 +0200)]
Bundlify blog
xmo-odoo [Mon, 7 Jul 2014 08:37:23 +0000 (10:37 +0200)]
Merge pull request #947 from chrispetsos/odoo-807
Changed follower's e-mail to reference Odoo instead of OpenERP, fixes #807
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 [Mon, 7 Jul 2014 07:42:27 +0000 (09:42 +0200)]
[IMP] addons: use the magic methods signal_XXX() instead of signal_workflow('XXX')
Hitesh Trivedi [Mon, 7 Jul 2014 06:30:19 +0000 (12:00 +0530)]
[FIX]Display answers in order by posted date in descending (latest to old)
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
Chris Petsos [Sun, 6 Jul 2014 11:10:57 +0000 (14:10 +0300)]
odoo-807: Changed follower's e-mail to reference Odoo instead of OpenERP
JoshuaJan [Sun, 6 Jul 2014 09:41:07 +0000 (17:41 +0800)]
skip the inactivate employee in leaves summary
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.