Géry Debongnie [Fri, 25 Jul 2014 13:52:38 +0000 (15:52 +0200)]
[FIX] correctly type date field in crm_lead_report
opening_date and date_closed were cast to char but are supposed to be
dates. When you try to group crm_lead_report by one of them, postgres
was not happy. Now, it properly tells postgres that they are of type
date.
Géry Debongnie [Fri, 25 Jul 2014 12:35:42 +0000 (14:35 +0200)]
[IMP] improve graph view layout and groupbys
* add a 'total' foldable button to allow the user to control the column
in pivot table view
* in the dropdown menu, add all fields from the model instead of only
those from the search view groupbys
Raphael Collet [Wed, 30 Jul 2014 13:05:03 +0000 (15:05 +0200)]
Merge pull request #1284 from sebalix/8.0-fix-xmlrpc-marshall-none
[FIX] read() method returns None values instead of False, incompatible with XML-RPC
Raphael Collet [Wed, 30 Jul 2014 09:50:57 +0000 (11:50 +0200)]
[FIX] models: fixes #1017; do not update list in place in the construction of _depends on models
Olivier Dony [Tue, 22 Jul 2014 21:00:58 +0000 (23:00 +0200)]
[IMP] website: disable translations for example URLs
Olivier Dony [Tue, 22 Jul 2014 20:59:43 +0000 (22:59 +0200)]
[IMP] website: unused imports
Olivier Dony [Tue, 22 Jul 2014 20:59:15 +0000 (22:59 +0200)]
[IMP] website: update sample social media accounts
Olivier Dony [Tue, 15 Jul 2014 15:02:39 +0000 (17:02 +0200)]
[ADD] safe_eval: allow YIELD_VALUE, used e.g. for generator comprehension
Olivier Dony [Mon, 14 Jul 2014 18:17:24 +0000 (20:17 +0200)]
[FIX] snippets: avoid orphan full stop (.)
Olivier Dony [Mon, 14 Jul 2014 17:59:59 +0000 (19:59 +0200)]
[FIX] website.menu: url field should not be translated
Pages are made translatable using a dedicated mechanism,
and there is no UI to translate menu URLs anyway.
Olivier Dony [Mon, 14 Jul 2014 14:37:49 +0000 (16:37 +0200)]
[IMP] website: disable translation exports for test models
Avoids noise in POT files
Olivier Dony [Mon, 14 Jul 2014 14:36:48 +0000 (16:36 +0200)]
[IMP] BaseModel: new `_translate` attribute to disable translations
Can be defined to False in any model to completely
disable translations for this model, when they are
irrelevant. This is useful e.g. for test classes
that use attributes that would normally be translatable.
Olivier Dony [Thu, 10 Jul 2014 14:41:30 +0000 (16:41 +0200)]
[IMP] tools.translate: unused import
Olivier Dony [Tue, 8 Jul 2014 16:29:39 +0000 (18:29 +0200)]
[FIX] google_calendar: cleanup/spellcheck translatable terms
Olivier Dony [Mon, 7 Jul 2014 16:10:57 +0000 (18:10 +0200)]
[REM] fields: remove fields.Any, temporary artifact for ill-typed fields
This was added in master-apiculture at f1f16a8 to
permit special function fields that return
structured JSON-like data.
This is unnecessary and caused typing problems, for
example for the type field of ir.model.fields, or
when you decide to store them.
It is simpler to explicitly declare these fields
as fields.Char and have them serialize their results
to JSON strings, or to declate them as fields.Binary
and return any opaque data they want.
Christophe Combelles [Thu, 10 Jul 2014 14:47:06 +0000 (17:47 +0300)]
[FIX] base: ir.qweb: ensure element.tail is correctly encoded
element.{text,tail} are either ascii-compatible `str`, or `unicode`
when non-ascii-compatible. This could force the implicit decoding
of utf-8 encoded contents when joining template bits, breaking
the rendering.
Fixes #1085, and related to #1130
Denis Ledoux [Tue, 29 Jul 2014 17:43:56 +0000 (19:43 +0200)]
[FIX] web: return _super deferred in start method
Forget to include the _super method in the deferred returned by the start function of the search view
See previous rev.
70605240a9e4e0279bd339c3d80cab3862a58abd
Denis Ledoux [Tue, 29 Jul 2014 17:38:28 +0000 (19:38 +0200)]
[FIX] web: headless search views are ready from start
function start, line 783, filters_ready waits for fields_view_get deferred to be resolved before calling prepare_filters, which prepare the view filters.
The thing is that, at line 416, if this.headless boolean is true, the searchview is marked as ready (by resolving the this.ready deferred), and the fields_view_get deferred will never be resolved, as it is resolved in the else case, where the this.headless boolean is false.
Therefore, in this.headless true case, this prevents the deferred $.when(this._super(), filters_ready) to be resolved, as the deferred filters_ready will never be resolved. Therefore, the deferred returned by the start function is never resolved, and the searchview will never be regarded as ready neither.
In views.js, the ViewManager is marked as ready when the deferred manager_ready = $.when(searchview_loaded, main_view_loaded, this.view_completely_inited) is resolved. In the this.headless true case, as the searchview is never marked as ready, the manager isn't neither.
This leaded to some issues, like the action buttons in form views being disabled on click, and never re-enabled once the action/wizard executed. See opw-610723
Jeremy Kersten [Tue, 29 Jul 2014 15:10:03 +0000 (17:10 +0200)]
[REF] crm analytics: refactor - lint
Jeremy Kersten [Tue, 29 Jul 2014 12:46:45 +0000 (14:46 +0200)]
[IMP] crm: Add Campaign source and medium in group by + fix a bug when name_search return a tuple and not only the id.
Jeremy Kersten [Tue, 29 Jul 2014 10:05:50 +0000 (12:05 +0200)]
[IMP] website_blog: group the get_discussion in one request(get_discussionS), that will avoid to make one request by paragraph in blog.
Olivier Dony [Mon, 28 Jul 2014 16:49:32 +0000 (18:49 +0200)]
[FIX] wek_kanban_gauge: use field raw_value to avoid thousands separator etc.
Christophe Simonis [Mon, 28 Jul 2014 16:07:17 +0000 (18:07 +0200)]
[FIX] {base_action_rule,calendar,hr,mail,project_issue}: decorate the method `message_post` to specify signature
Martin Trigaux [Mon, 28 Jul 2014 14:37:56 +0000 (16:37 +0200)]
Forward port of branch saas-5 up to eda2f06
Martin Trigaux [Mon, 28 Jul 2014 07:35:25 +0000 (09:35 +0200)]
[FIX] stock: backport of rev 0a6d63b
Olivier Dony [Fri, 25 Jul 2014 14:33:48 +0000 (16:33 +0200)]
[FIX] res.users: safer read() when computing default company value
The goal is to avoid any kind of prefetching
of other fields when copmuting the default
company, as this will sometimes happen in the
middle of a database update, when the default
company is used for setting the default value
of new columns. In that case the db schema
may not fully match the in-memory model, leading
to an SQL error.
Olivier Dony [Fri, 25 Jul 2014 12:18:03 +0000 (14:18 +0200)]
[IMP] account.invoice: add extra @id on `smart button` to make inheritance easier
Martin Trigaux [Wed, 16 Jul 2014 08:35:52 +0000 (10:35 +0200)]
[FIX] models: display_name and name_get mismatch
- display_name uses name_get and not the other way around:
name_get should not call _compute_display_name, _compute_display_name should call name_get.
The previous behaviour was not backward-compatible with the old api.
All the models redefining name_get would have 2 different behaviors between name_get and display_name.
- Do not set an inverse function to display_name:
In most cases, writing on display_name writes on _rec_name (if any, not mandatory).
If the display_name computation is redefined, we need to redefine as well the inverse method to avoid unexpected behaviour
This required to also modify tests in base_import as readonly fields are avoided.
- Remove search method on display_name:
For the same reason as for the first point, it could be good that searching on display_name use name_search (and not the other way around).
However doing this would be very inefficiant (need to do the search, without limit, extract the ids of the name_get result just to generate
a subdomain ('id', 'in', [...]). As in most cases it would anyway mean to search on the _rec_name it's better to directly do so.
- Changing label to avoid mismatch:
In view displaying the list of fields or when a match is made on the label of a field (e.g. when importing csv file,
matching is made on both label and technical name), the fact that display_name field has '
Calling it 'Display Name' will avoid most errors.
- remove display_name definition from website_forum_doc,ir_model:
These fields are doing the same thing as the display_name of the new api, we can remove them.
We need to keep the one for res.partner as it's a stored field.
Olivier Dony [Fri, 25 Jul 2014 10:43:16 +0000 (12:43 +0200)]
[REVERT] 8b41906: disabled all on_change on new record form
This reverts commit
8b41906bf8a22e3f00d3ea334f89b7f1aec27442.
Olivier Dony [Fri, 25 Jul 2014 08:59:49 +0000 (10:59 +0200)]
[FIX] website: more robust inherit between footer_custom and footer_default
Olivier Dony [Fri, 25 Jul 2014 08:46:12 +0000 (10:46 +0200)]
[IMP] ir.logging: add index on dbname/type, important with high number of log lines
Richard Mathot [Thu, 24 Jul 2014 09:27:32 +0000 (11:27 +0200)]
[REF] Odooification
Olivier Dony [Thu, 24 Jul 2014 10:22:20 +0000 (12:22 +0200)]
[FIX] models: check harder that default value is not NULL before setting it
When computing defaults we may end up with
a falsy value that is not None (e.g. '' or False)
That value will be cast to None when being
saved in the database, depending on the column type
(e.g. saving False on a many2one actually stores NULL).
Improve the test to consider the value being written
*after* that conversion, to *really* avoid nonsensical
and expensive queries such as:
UPDATE table set col = NULL WHERE col IS NULL;
Vidhin Mehta [Thu, 24 Jul 2014 07:31:58 +0000 (13:01 +0530)]
[FIX] web: wrong tooltip display for long menus
Due to the switch to Bootstrap 3.2 in this version, tooltip auto placement works erroneously (see https://github.com/twbs/bootstrap/issues/13897).
This is a workaround, waiting for a fix in Bootstrap assets.
(Closes #1341)
Martin Trigaux [Thu, 24 Jul 2014 10:12:33 +0000 (12:12 +0200)]
[FIX] web: avoid trying to access to deleted record message when change password
The onchange call can be made with empty ids list (which would fail). opw 610810
Denis Ledoux [Thu, 24 Jul 2014 09:53:57 +0000 (11:53 +0200)]
[FIX] ir_attachment: _filestore cache ignore uid
replace ormcache_context by ormcache: use the context in the cache key is useless
set skiparg=3 (default skiparg=2) so the uid is not used in the cache key: the filestore path is the same for all database users
Jeremy Kersten [Thu, 24 Jul 2014 09:07:46 +0000 (11:07 +0200)]
[FIX] website_sale: fix error in tracking_last_order which was using the field is_delivery from module delivery
Christophe Matthieu [Thu, 24 Jul 2014 07:32:41 +0000 (09:32 +0200)]
Merge pull request #1338 from odoo-dev/8.0-fix-website-snippet-button-css-chm
[FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes
Olivier Dony [Wed, 23 Jul 2014 21:31:36 +0000 (23:31 +0200)]
[FIX] share: reduce risk of slowdowns during res.groups changes
Databases with thousands of users would experience
poor performance during any change to a group during
an update/install, caused by the prefetching of
all database users when the browse cache contains
most of the groups in the system.
Olivier Dony [Wed, 23 Jul 2014 14:57:28 +0000 (16:57 +0200)]
[MERGE] Forward-port saas-5 up to a5f7891
Christophe Matthieu [Wed, 23 Jul 2014 14:25:39 +0000 (16:25 +0200)]
Merge pull request #1337 from odoo-dev/saas-5-fix-product-taxes-view-chm
[FIX] account: the 'Customer taxes' field on the product is readonly when my product doesn't have any variant
Christophe Matthieu [Wed, 23 Jul 2014 14:21:53 +0000 (16:21 +0200)]
[FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes
Christophe Matthieu [Wed, 23 Jul 2014 13:37:15 +0000 (15:37 +0200)]
[FIX] account: the 'Customer taxes' field on the product is readonly when my product doesn't have any variant
Olivier Dony [Wed, 23 Jul 2014 12:42:04 +0000 (14:42 +0200)]
[FIX] ir.module.module: create module xml id also when auto-discovered
It was only being created during database initialization
Denis Ledoux [Wed, 23 Jul 2014 11:16:59 +0000 (13:16 +0200)]
[MERGE] forward port of branch saas-4 up to
5739aebfb1711bb94c2f94bfb03ec12f17e9430d
Olivier Dony [Wed, 23 Jul 2014 10:30:24 +0000 (12:30 +0200)]
[FIX] fields: do not revalidate field values unless they are being modified
In the previous implementation of the new API fields,
both fields.Selection and fields.Reference were performing
early validation of their `value` as soon as it entered
the cache, either by being read, written, or computed.
This is a source of trouble and performance problems,
and is unnecessary, as we should consider that the database
always contains valid values. If that is not the case it
means it was modified externally and is an exception that
should be handled externally as well.
Revalidating selection/reference values can be expensive
when the domain of values is dynamic and requires extra
database queries, with extra access rights control, etc.
This patch adds a `validate` parameter to `convert_to_cache`,
allowing to turn off the re-validation on demand. The ORM
will turn off validation whenever the value being converted
is supposed to be already validated, such as when reading it
from the database.
The parameter is currently ignored by all other fields,
and defaults to True so validation is performed in all other
caes.
Denis Ledoux [Wed, 23 Jul 2014 10:14:14 +0000 (12:14 +0200)]
[MERGE] forward port of branch saas-3 up to
474eae9a43ad7860f11f1d3c1cb8c587eeb98412
Denis Ledoux [Wed, 23 Jul 2014 10:00:09 +0000 (12:00 +0200)]
[FIX] website_sale: translated terms payment status
Payment status (website_sale confirmation page) inject a status message, which was not set to be translatable. It should be the case.
Daniel Dico [Tue, 22 Jul 2014 20:17:46 +0000 (16:17 -0400)]
[FIX] account: Bank Statement reconcilation with different currency
When generating reconciled moves in bank statement, use the amount_currency field instead of amount for currency conversion.
Otherwise we would endup with moves with an amount of 0.
Jeremy Kersten [Wed, 23 Jul 2014 09:15:07 +0000 (11:15 +0200)]
[IMP] website_crm: allow creation of the lead to be overrided. That avoid people to rewrite all the routine of the form if they want to change the default behavior at lead creation when form is submitted.
qdp-odoo [Wed, 23 Jul 2014 07:48:05 +0000 (09:48 +0200)]
[FIX] stock: wrong target table and function for lot_ids in stock.move
qdp-odoo [Wed, 23 Jul 2014 08:15:29 +0000 (10:15 +0200)]
[FIX] account: fixed the copy of a bank statement
qdp-odoo [Wed, 23 Jul 2014 07:48:05 +0000 (09:48 +0200)]
[FIX] stock: wrong target table and function for lot_ids in stock.move
Denis Ledoux [Wed, 23 Jul 2014 06:56:36 +0000 (08:56 +0200)]
[FIX] website_sale: _rec_name product.attribute.line
Set the _rec_name for product.attribute.line model, as its column name wasn't defined, and therefore search on it wasn't possible (For instance, do an advanced search on product.product with "Product Attributes" "Contains" "Something" wasn't possible).
Christophe Combelles [Wed, 9 Jul 2014 21:22:21 +0000 (00:22 +0300)]
[FIX] account: using wizard methods instead of invoice methods
Typo during port of account.invoice to new API.
(Rebase of 02a36b6 for #1052)
Denis Ledoux [Tue, 22 Jul 2014 17:13:13 +0000 (19:13 +0200)]
[FIX] sale, crm_claim, crm_helpdesk: report menus
crm claims and helpdesk reports should be in Sales Report menu, not in project
The sales report menu is now defined in sales_team, which is a common dependance between crm and sales, instead of redefining this menu in each modules
Lionel Sausin (Numérigraphe) [Mon, 21 Jul 2014 14:01:04 +0000 (16:01 +0200)]
[IMP] sale_stock Show the button 'view delivery order' as soon as a picking exists
The button should appear no matter the state of the sale order, to be consistent with the rest of the application.
This makes it much faster for the sales person to find out about orders in shipping exceptions or already processed.
Fixes #256
Martin Trigaux [Tue, 22 Jul 2014 14:15:01 +0000 (16:15 +0200)]
[FIX] website_sale_delivery: avoid selecting unavailable delivery method
If somebody selects a delivery method not matching any criteria, the server would crash (500 for the user). This is due to error raised in get_price_from_picking which is triggered by the function field 'price' on the 'delivery.carrier' object.
To avoid this, add field 'available' on the carrier that will be False when no delivery gird is found or when the error is raised. In this case, the delivery choice is disabled. opw 610210
Martin Trigaux [Tue, 22 Jul 2014 11:39:15 +0000 (13:39 +0200)]
[MERGE] forward port of branch 7.0 up to 680f955
Anaël Closson [Wed, 28 May 2014 14:01:47 +0000 (16:01 +0200)]
[FIX] web: reload after wizard when record has been removed cause exception
If an action unlink the current records (e.g. unreconcile on account.move.reconcile), trigger history_back to avoid errors when trying to reload inexistant record (opw 607883)
This is a partial backport of saas-4 code (rev c0db6ae, 162ad1c) and should not be forward ported.
Dhs-odoo [Mon, 14 Jul 2014 09:53:39 +0000 (15:23 +0530)]
[FIX] project : do not show canceled projects in task
fixes #938, opw 610318
Richard Mathot [Tue, 22 Jul 2014 08:03:16 +0000 (10:03 +0200)]
[FIX] hr_attendance: typo introduced at rev
1c9e8ba077b296ec9c334800915fbbf76c81310c
sebalix [Sun, 20 Jul 2014 11:31:50 +0000 (13:31 +0200)]
[FIX] read() method returns None values incompatible with XML-RPC
Denis Ledoux [Fri, 18 Jul 2014 15:26:48 +0000 (17:26 +0200)]
[FIX] sale: only propose services for pay advances
When creating an invoice from a sale order, if the user choose to invoice a fixed price (deposit), he has the possibility to choose an advance product. As described in the help message, this product should be a service product. Therefore, we add a domain so only services are displayed in the dropdown list
Martin Trigaux [Wed, 4 Jun 2014 14:33:58 +0000 (16:33 +0200)]
[FIX] account: better error message when regenarating opening entries (opw 606923)
If we try to generate twice entries on the same fiscal year, we can get completly unrelated errors ("You can only reconcile journal items with the same partner").
With this, we make sure people will first cancel the entries before regeneraing the entries.
Denis Ledoux [Fri, 18 Jul 2014 14:49:45 +0000 (16:49 +0200)]
[FIX] sale: do not propagate context on send email
Otherwise, active_id, active_ids, active_model params are propagated, and it leads to inconsistencies.
For instances, go to Sales > Customers, choose a customer which has quotations.
On the form, hit the "Quotations and sales" Button
Choose a quotation. Hit the "send by email" button.
The template preview should be displayed correctly. Now send the email, than
- Either, you have no traceback: The email sent is the email of another quotation, the quotation having as id the id of the partner you chose
- Either, you have a traceback: There is no quotation having as id the id of the partner you chose.
Jérome Maes [Fri, 18 Jul 2014 14:41:15 +0000 (16:41 +0200)]
[FIX] im_chat : css style z-index to make it good with ecommerce and calendar
Christophe Matthieu [Fri, 18 Jul 2014 14:04:28 +0000 (16:04 +0200)]
Merge pull request #1262 from odoo-dev/8.0-fix-product-lst_price-chm
[FIX] product: user who don't use product variant can't edit the price of the product in product view. This behavior is not understandable. Add a function inverse to set the value (remove the variante price before change the list_price of the template)
Xavier Morel [Fri, 18 Jul 2014 13:06:39 +0000 (15:06 +0200)]
[FIX] website_hr_recruitment: typo during new API conversion
re fixes #1148
Richard Mathot [Fri, 18 Jul 2014 12:58:30 +0000 (14:58 +0200)]
[REF] OpenERP --> Odoo in various UI texts (2)
Some things missed by commit
8b67a7202d9dd3492001cade3d361b8a5424ec3f
Denis Ledoux [Fri, 18 Jul 2014 11:56:42 +0000 (13:56 +0200)]
[FIX] procurement: avoid to run multiple scheduler
Avoid to run the procurement scheduler multiple times in the same time, otherwise, they tend to interfere with each others
rlu-odoo [Wed, 9 Jul 2014 11:39:38 +0000 (17:09 +0530)]
[REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages
(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)
Closes #1260
Christophe Simonis [Fri, 18 Jul 2014 11:19:02 +0000 (13:19 +0200)]
[FIX] web_linkedin: link (in) the config_parameter with the correct group
Jérome Maes [Fri, 18 Jul 2014 11:02:07 +0000 (13:02 +0200)]
[FIX] crm : propagate the lead_id when scheldule other phone calls
qdp-odoo [Fri, 18 Jul 2014 10:17:54 +0000 (12:17 +0200)]
[FIX] purchase: set the commitment date as the max of scheduled dates when creating a picking from a PO, instead of leaving it at the current time (validation) which just doesn't make sense
qdp-odoo [Tue, 22 Jul 2014 06:58:02 +0000 (08:58 +0200)]
Merge pull request #1268 from odoo-dev/8.0-pos-fixes-qdp
[FIX] point_of_sale: fixed errors that avoid closing a pos session + [IM...
qdp-odoo [Fri, 18 Jul 2014 13:43:00 +0000 (15:43 +0200)]
[FIX] point_of_sale: fixed errors that avoid closing a pos session + [IMP] account: added back the account_id field on statement.line obj to ease the reconciliation process when importing statements (or creating them through pos.orders). Fix #932
Oliver Laurent [Fri, 18 Jul 2014 09:53:19 +0000 (11:53 +0200)]
[FIX] hr_timesheet: handle case when has never signed in
The search may return zero results if an employee has never signed in. In this case the browse would have failed.
Christophe Matthieu [Fri, 18 Jul 2014 09:33:09 +0000 (11:33 +0200)]
[FIX] product: user who don't use product variant can't edit the price of the product in product view. This behavior is not understandable. Add a function inverse to set the value (remove the variante price before change the list_price of the template)
TheCloneMaster [Fri, 18 Jul 2014 05:58:44 +0000 (23:58 -0600)]
[FIX] hr_timesheet: missing '&' in domain clause
To search the contracts for payroll, the domain is constructed with three clauses. Each of these clauses needs to start with a '&' to make sure they are correctly combined with the OR clause'
mdi-odoo [Tue, 15 Jul 2014 05:39:53 +0000 (11:09 +0530)]
[FIX] fleet: prevent crash when no cost_ids
Bhumi Patel [Mon, 14 Jul 2014 05:31:57 +0000 (11:01 +0530)]
[FIX] website_forum: prevent crash when no country
Closes #1171
Olivier Dony [Thu, 17 Jul 2014 15:18:14 +0000 (17:18 +0200)]
[IMP] base, mail: cache user.has_group() + ir.ui.menu.load*()
Loading the menus is the most expensive
operation for an average page load, and
the result does not change often.
The menu filtering already uses a separate
cache based on groups, but the rest of the
loading includes reading actions and
translating menu names, which is also
expensive.
Added a cache keyed on user + user
lang, plus relevant cache invalidation
when any of the following are touched:
access rights, user data including
groups and language, menus or mail.group
subscriptions.
The menu filtering cache is still
useful in parallel has it is invalidated
under different conditions.
User.has_group() is cheap but still
called very often, so it is an easy
win as well, and also frequently
used when rendering page templates.
Olivier Dony [Thu, 17 Jul 2014 15:02:28 +0000 (17:02 +0200)]
[IMP] mail: speed up filtering of mail.group menus
Replacing the browse+search speeds up
the filtering 50x, which is significant
for a method that may be called on most
page loads as soon as the user is
logged in.
Christophe Matthieu [Tue, 15 Jul 2014 12:45:24 +0000 (14:45 +0200)]
[IMP] model: when the orm create/update a table check if they are at least one row of the table to load column default values
Christophe Matthieu [Tue, 15 Jul 2014 12:38:59 +0000 (14:38 +0200)]
[FIX] res.users: use read method to compute default values to don't create browse record and fetch all fields, browse record crash for install or update module
Christophe Matthieu [Thu, 17 Jul 2014 08:48:53 +0000 (10:48 +0200)]
[FIX] model: The user install / update / test is different from the normal mode (no prefetch in test mode) some errors are hidden.
qdp-odoo [Thu, 17 Jul 2014 16:18:16 +0000 (18:18 +0200)]
Merge pull request #1124 from odoo-dev/master-wmsstaging4-jco
fixes related to WMS, product variants and templates... from Josse
Josse Colpaert [Thu, 17 Jul 2014 15:52:10 +0000 (17:52 +0200)]
[IMP] We should not have lost this decorator
Denis Ledoux [Thu, 17 Jul 2014 15:22:43 +0000 (17:22 +0200)]
[FIX] website_sale: do not set t-field in option
t-field in option input (select > option) is not supported
Martin Trigaux [Thu, 17 Jul 2014 14:09:52 +0000 (16:09 +0200)]
[FIX] website_sale: make the 'Ship to a different address' always available
In the backend the option 'Allow a different address for delivery and invoicing' will set the group sale.group_delivery_invoice_address to employees. However the public user is not an employee (and we don't want to change that) so does not get this group. As we don't have similar group mechanism for public user, we have no other choice than always displaying the option to have different address. opw 610118
Martin Trigaux [Thu, 17 Jul 2014 12:22:20 +0000 (14:22 +0200)]
[FIX] ir_values: fallback when no condition
When searching for default values, if we set a condition (e.g. 'type=out_invoice'), fetch also the default values without any condition set. Thanks to the order by clause, the one with a condition have an higher priority than the one without and will not affect existing result.
This fixes default journal/currency on an invoice where the journal is retrieved in the onchange_company_id method (domain is forced). Without this patch only ir.values with a domain set will match, opw 610645
Olivier Dony [Thu, 17 Jul 2014 10:33:55 +0000 (12:33 +0200)]
[IMP] mail.group: set special header to disable OOF replies from MS Exchange
Olivier Dony [Wed, 16 Jul 2014 22:56:52 +0000 (00:56 +0200)]
[FIX] website_mail_group: slufigy group link + spellchecking
Olivier Dony [Wed, 16 Jul 2014 22:16:12 +0000 (00:16 +0200)]
[FIX] mail: less confusing To: header for mailing-list posts
Many mail clients will replace the name in the To:
header with Me if the To: email matches the email
of the user. These users will see To: Me instead of
"Followers of ..." and usually believe this was a
private email from the sender to them.
But when replying they would reply to the whole list.
Fix this by explicitly forcing the To: to be the
mailing list address.
Olivier Dony [Wed, 16 Jul 2014 20:51:43 +0000 (22:51 +0200)]
[FIX] mail, website_mail: specific mailing-list footer + better unsubscribe option
- remove the default footer for mail.group messages,
replace with specific footer with archive and unsubscribe
link
- remove the automatic addition of user signature in
mail.group messages, as many of them will be posted
via the mail gateway and already contain a user signature.
- make it easier to unsubscribe even when not logged in,
as followers who have not signed up will have no
way to login short of signing up.
- remove tests looking for user signature in mail.group posts
Xavier Morel [Wed, 16 Jul 2014 14:22:34 +0000 (16:22 +0200)]
[FIX] "prefetching" removing even the records specifically asked for
16d6744 turns out to not be great, because it filters out the todos for
prefetched fields (rather than those just for the field being asked) there are
situations where it ends up not fetching the records it was originally asked
for and breaks a bunch of stuff e.g. unreconcile line in bank statements
Force the ids explicitly asked for back in the fetched set, so that the
prefetch is at most a noop, rco will have to take an actual look at it.
Jeremy Kersten [Wed, 16 Jul 2014 12:59:22 +0000 (14:59 +0200)]
base_gengo: [FIX] change http status code for gengo_callback because status 100 make response very slow
[FIX] Cron for gengo was always in mode 'do missed' what we don't want, replace 0 by False
[FIX] Remove unused regexp to find view_id from js which was breaking the count words
Xavier Morel [Wed, 16 Jul 2014 12:07:43 +0000 (14:07 +0200)]
[FIX] ensure Field strings are decoded before comparing them to one another
fixes #773
Josse Colpaert [Wed, 16 Jul 2014 11:50:56 +0000 (13:50 +0200)]
[IMP] Only show number of variants when more than one + bug cursor Compute Minimum Stock Rules