Simon Lejeune [Thu, 26 Jun 2014 14:34:31 +0000 (16:34 +0200)]
[IMP] report; minimal layout is now a qweb template, allowing users to customize it. also make pypdf mandatory to start Odoo
Simon Lejeune [Thu, 26 Jun 2014 13:56:18 +0000 (15:56 +0200)]
[IMP] cosmetic changes
Simon Lejeune [Wed, 11 Jun 2014 21:07:28 +0000 (23:07 +0200)]
Merge remote-tracking branch 'odoo/saas-5' into saas-5-report-translation-fix-sle
Simon Lejeune [Wed, 11 Jun 2014 18:53:03 +0000 (20:53 +0200)]
[FIX] request unbound during test execution, add condition in website.layout and livechat
Simon Lejeune [Wed, 11 Jun 2014 17:17:56 +0000 (19:17 +0200)]
[FIX] attempt to render website.layout during test execution
Simon Lejeune [Wed, 11 Jun 2014 17:09:46 +0000 (19:09 +0200)]
[FIX] earlier set of 'translatable' key in report context
Simon Lejeune [Wed, 11 Jun 2014 16:33:16 +0000 (18:33 +0200)]
[FIX] do not access website during test execution
Simon Lejeune [Wed, 11 Jun 2014 14:56:54 +0000 (16:56 +0200)]
[FIX] fixes #204 : correct report translations by 'cloning' web.layout and website.layout (inherit in primary mode) to avoid constantly synchronise website and website_report + do not wrongly update the context and loose the selected lang
Thibault Delavallée [Wed, 11 Jun 2014 11:56:23 +0000 (13:56 +0200)]
[FIX] website_forum: people having enough karma can accepts answers on every question, not just their own. Fixed the condition computation.
Jonathan Nemry [Tue, 10 Jun 2014 14:57:54 +0000 (16:57 +0200)]
[FIX] website_mail: default could be None
Martin Trigaux [Tue, 10 Jun 2014 14:48:19 +0000 (16:48 +0200)]
[FIX] website_mail: backport of master fix
a54caabbcb10a7db02f872ef5097ac379db5445f
Christophe Simonis [Tue, 10 Jun 2014 14:11:11 +0000 (16:11 +0200)]
[FIX] logging PostgreSQLHandler: mute sql_db logger to avoid logging loop if db connection or query failed
Christophe Simonis [Tue, 10 Jun 2014 11:15:46 +0000 (13:15 +0200)]
[MERGE] forward port of branch saas-4 up to 6b8e972
Christophe Simonis [Tue, 10 Jun 2014 10:29:47 +0000 (12:29 +0200)]
[MERGE] forward port of branch saas-3 up to 4601d85
Christophe Simonis [Tue, 10 Jun 2014 09:49:14 +0000 (11:49 +0200)]
[MERGE] forward port of branch 7.0 up to 6fdb783
Christophe Simonis [Tue, 10 Jun 2014 09:15:52 +0000 (11:15 +0200)]
[FIX] logging PostgreSQLHandler: do not insert {create,write}_uid
As logs can be stored in any database, we can't insert create_uid and write_uid as it
refer to the current database not the logging one, where FK may not match
Martin Trigaux [Tue, 10 Jun 2014 07:38:48 +0000 (09:38 +0200)]
Merge pull request #56 from yvaucher/7.0-fix-1319109
[FIX] report_webkit: avoid sharing parser instance globally and make it thread safe
Martin Trigaux [Fri, 6 Jun 2014 11:55:59 +0000 (13:55 +0200)]
Merge pull request #404 from odoo-dev/7.0-norecomputestoredm2ofuncfields-chs
[FIX] orm: do not recompute m2o stored function field at read.
Christophe Matthieu [Fri, 6 Jun 2014 10:40:44 +0000 (12:40 +0200)]
Merge pull request #405 from odoo-dev/saas-5-fix-website-contact-form-chm
[FIX] website_crm: when there is an error in required field, user_id=False in the controller overwrite the user_id browse record to display the contact form template.
Christophe Simonis [Fri, 6 Jun 2014 08:53:42 +0000 (10:53 +0200)]
[FIX] orm: do not recompute m2o stored function field at read.
The get() method of m2o function fields is used for 2 different things:
- call the function defining the m2o
- get the name_get representation of the value
Until this pathc, only the first case was handled, resulting to a useless
recomputation of the field when reading it.
Christophe Matthieu [Fri, 6 Jun 2014 07:56:40 +0000 (09:56 +0200)]
[FIX] website_crm: when there is an error in required field, user_id=False in the controller overwrite the user_id browse record to display the contact form template.
Oliver Laurent [Thu, 5 Jun 2014 17:00:14 +0000 (19:00 +0200)]
[FIX] orm: do not resize unlimited char fields
Laurent Mignon [Thu, 5 Jun 2014 16:59:03 +0000 (18:59 +0200)]
[FIX] ir_cron: use the same search criteria as when listing job to excecyte when acquiring the ock on the job before its execution to prevent running already executed job
Backport of fix made in trunk
Denis Ledoux [Thu, 5 Jun 2014 16:58:01 +0000 (18:58 +0200)]
[FIX] website: on adding a slide to slider, new slide is last on save
Before, the new slide was set as first slide
Moreover, the indicators were not correct neither
Martin Trigaux [Thu, 5 Jun 2014 16:38:19 +0000 (18:38 +0200)]
[IMP] stock: when checking the state of the product, do not recompute the quantity on every move but only the one currently browsing (optiomisation)
Denis Ledoux [Thu, 5 Jun 2014 15:50:15 +0000 (17:50 +0200)]
[FIX] website_event_track: remove trailing comma in speakers name in event tracks
Denis Ledoux [Thu, 5 Jun 2014 13:53:28 +0000 (15:53 +0200)]
[FIX] document_page: allow other users than administrator to create menu to a static page
User should be at least have Configuration settings group to be allowed to create actions. Basic document page users do not have this rights, therefore we temporary give superuser_id to create the action
This is related to rev
133c5033a092845e462b894c0d7739191480c709
Holger Brunn [Thu, 5 Jun 2014 13:44:18 +0000 (15:44 +0200)]
[FIX] project_timesheet: don't trigger write if there is nothing to write
Triggering an empty write could break constraint (can not update past timesheet) (opw 606963)
Christophe Simonis [Thu, 5 Jun 2014 11:46:53 +0000 (13:46 +0200)]
[FIX] web: many2many field handle "no_create" option
Martin Trigaux [Thu, 5 Jun 2014 10:52:11 +0000 (12:52 +0200)]
uninstall: avoid errors during uninstall
When uninstalling a module, remove the ir.model.constraint after removing the non-model records and before fields and model definition.
Without this fix, some constraint would be removed too early allowing to have broken relations and data left from removed module.
Denis Ledoux [Thu, 5 Jun 2014 08:45:14 +0000 (10:45 +0200)]
[FIX] account_analytic_analysis: Only allow to select sale pricelist for contracts
Denis Ledoux [Thu, 5 Jun 2014 08:42:02 +0000 (10:42 +0200)]
[FIX] account_analytic_analysis: Recurring invoice lines price if pricelist does not match
If the price according to price list is False, use default sale price in the recurring invoice lines
Olivier Dony [Tue, 3 Jun 2014 22:08:01 +0000 (00:08 +0200)]
[FIX] ir.qweb: rendering non-string attributes could cause unicode errors (Issue #282)
This occurs because werkzeug.utils.escape() auto-casts
non-basestring values to unicode, while we expect to be
working with bytestrings only.
So when evaluating attribute values, make sure we always
return bytestring values, never int, bool or unicode.
Christophe Simonis [Wed, 4 Jun 2014 17:22:31 +0000 (19:22 +0200)]
Merge pull request #344 from odoo-dev/saas-5-fix-mrp.bom-wrong-bom_find-check-chm
[FIX] mrp.bom: wrong check for bom_find.
If the user defined a bom line type phantom to a product without bom the check is wrong to display the error message.
Thibault Delavallée [Wed, 4 Jun 2014 16:54:20 +0000 (18:54 +0200)]
[FIX] mass_mailing: fixed computation of mailing domain when having more than 1 mailing list added in the recipients. A bit longer, but less buggy.
Christophe Matthieu [Wed, 4 Jun 2014 16:44:02 +0000 (18:44 +0200)]
[FIX] mrp.bom: wrong check for bom_find. If the user defined a bom line type phantom to a product without bom the check is wrong to display the error message.
Thibault Delavallée [Wed, 4 Jun 2014 16:20:55 +0000 (18:20 +0200)]
[FIX] mass_mailing: mailing form view: better display of action buttons, avoiding having several 'red action buttons' at the same time.
Denis Ledoux [Wed, 4 Jun 2014 14:15:16 +0000 (16:15 +0200)]
[FIX] website: prevent to split google analytics script
Martin Trigaux [Wed, 4 Jun 2014 13:19:57 +0000 (15:19 +0200)]
[FIX] point_of_sale: correct call to default value
The default value should be called with a lambda otherwise the payment_date is set to the date the server was started (opw 606715)
Martin Trigaux [Wed, 4 Jun 2014 13:06:53 +0000 (15:06 +0200)]
[FIX] kanban: avoid wrong placement of button on ie9
On ie9, the 'read more' button in kanban view was placed in the middle of the window instead of the bottom
Denis Ledoux [Wed, 4 Jun 2014 09:25:51 +0000 (11:25 +0200)]
[FIX] website_sale: backport commit
3cc4785ba6d27475323a606fef9466286024ad0e of master
This fix aimed saas-5, not master.
original Commit message:
display accessory field in form view and display the good accessory product inside ecommerce
This is related to previous rev
86055fb8cd5f86d9b4416d9d9a1a736e1c06aba9
Denis Ledoux [Wed, 4 Jun 2014 08:44:56 +0000 (10:44 +0200)]
[FIX] website_sale: accessory_product_ids are product.product, not product.template
This many2many field should actually have product.template as relation
But, in a stable release, we cannot alter the database
Therefore, when displaying accessory products in the card, it display the product_tmpl_id of the product.product, not itself
This relation should be changed in trunk
+ Actually displaying this field in the backend
Martin Trigaux [Wed, 4 Jun 2014 08:42:43 +0000 (10:42 +0200)]
[FIX] stock: use correct vals in grouped invoice (opw 606535)
When creating a grouped invoice, the invoice_vals value is used to create the invoice line.
The value was not reset for grouped invoice and we reused the values of previous line.
Christophe Simonis [Tue, 3 Jun 2014 17:45:19 +0000 (19:45 +0200)]
[MERGE] forward port of branch saas-4 up to 65f68c1
Christophe Simonis [Tue, 3 Jun 2014 17:14:22 +0000 (19:14 +0200)]
[MERGE] forward port of branch saas-3 up to 7dd6954
Christophe Simonis [Tue, 3 Jun 2014 17:11:44 +0000 (19:11 +0200)]
[MERGE] forward port of branch 7.0 up to 0c4bc1c
Christophe Matthieu [Tue, 3 Jun 2014 16:07:43 +0000 (18:07 +0200)]
Merge pull request #320 from odoo-dev/saas-5-website_sale-product-layout-chm
[FIX] website_sale: change template for product and variant selector (type color)
Christophe Simonis [Tue, 3 Jun 2014 15:48:08 +0000 (17:48 +0200)]
[FIX] routing_map: correct subclasses detection.
Subclass detection didn't include the class itself if all it's subclasses
were invalid. As we create a new regrouping subclass, that was always the
case after a registry reloading, causing subclassed controllers to not be
taken in account.
[IMP] routing_map: clean code a little bit
Martin Trigaux [Tue, 3 Jun 2014 14:56:07 +0000 (16:56 +0200)]
[FIX] sale: keep customer reference in grouped invoice (opw 606523)
Denis Ledoux [Tue, 3 Jun 2014 15:12:07 +0000 (17:12 +0200)]
[FIX] delivery: allow to add delivery method in quotation if quotation in quotation sent stage
opw-607920
Christophe Matthieu [Tue, 3 Jun 2014 14:58:26 +0000 (16:58 +0200)]
[IMP] product: set at false one product variant of ipad
Martin Trigaux [Tue, 3 Jun 2014 14:48:40 +0000 (16:48 +0200)]
Merge pull request #322 from guewen/product-write-fix
[FIX] product: write() should accept both int/long and tuple/list
Denis Ledoux [Tue, 3 Jun 2014 14:28:06 +0000 (16:28 +0200)]
[MERGE] Forward-port of latest saas-3 bugfixes, up to rev.
e7a0b1bb9095048914e11eb1915c20d336f74c08
Guewen Baconnier [Tue, 3 Jun 2014 14:13:54 +0000 (16:13 +0200)]
Wrong variable name. The write() method should accept both int/long and tuple/list
Christophe Matthieu [Tue, 3 Jun 2014 13:38:11 +0000 (15:38 +0200)]
[FIX] website_sale: change template for product and variant selector (type color)
Thibault Delavallée [Tue, 3 Jun 2014 13:21:29 +0000 (15:21 +0200)]
[FIX] mass_mailing: newsletter snippet:
- fixed subscription, was always subscribing to the last created list;
- slightly improved the snippet display, now displaying a 'thanks' when subscribed instead of just making everything disabled;
- removed unnecessary JS line
Denis Ledoux [Tue, 3 Jun 2014 13:03:13 +0000 (15:03 +0200)]
[FIX] product: product_variant group does not exist anymore
Therefore, the pricelist item view must show the field product_tmpl_id in any case
Guewen Baconnier [Tue, 3 Jun 2014 12:19:51 +0000 (14:19 +0200)]
[FIX] product: fix _set_price_extra method
avoid crash is context is None
create call does not have ids parameter
Christophe Matthieu [Tue, 3 Jun 2014 11:16:27 +0000 (13:16 +0200)]
Merge pull request #298 from odoo-dev/saas-5-fixes-product-chm
[FIX] product
Context in _set_standard_price and many2one in product.packaging;
Set required at false for product template field when creating a product product;
Remove wrong field on product.template. TODO: move packaging field form product.product to product.template
Denis Ledoux [Tue, 3 Jun 2014 10:21:34 +0000 (12:21 +0200)]
[FIX] event_sale: stored seats_max field
seats_max is a stored field in event, and should remain stored when overrided in event_sale
Thibault Delavallée [Tue, 3 Jun 2014 10:03:42 +0000 (12:03 +0200)]
Merge pull request #288 from odoo-dev/saas-4-mass_mailing_fixes-tde
[FIX] mass_mailing: fixes
- backport (+ cleaning) of
eb22d202e48068a82ddcfa3878dbe0cbb845cc9c (saas-5): mail_thread: routing: instead of exclusive routing heuristics, use each case as a fallback of the previous.
- better fix for
dd36a0e5093df90bd92667d26f529a3a79fe0397 (saas-5): mail_thread: routing: fixed replies always choosen even when replying to emails with a specified reply_to (using ref_match in the algorithm)
- backport of
d6a2ae642b1a48ce6cb227c3cde2deca847a0a33 (saas-5): avoid evaluating a False / None domain
- fixed keeping the original message for routing, only when choosing to reply in the original thread (notification=True)
- mail_thread: routing: fixed replies always chosen even when replying to emails with a specified reply_to (using ref_match in the algorithm)
Christophe Matthieu [Tue, 3 Jun 2014 09:15:17 +0000 (11:15 +0200)]
[FIX] product: remove wrong field on product.template. TODO: move packaging field form product.product to product.template
Christophe Matthieu [Tue, 3 Jun 2014 09:13:50 +0000 (11:13 +0200)]
[FIX] product: set required at false for product template field when creating a product product.
Thibault Delavallée [Tue, 3 Jun 2014 08:56:05 +0000 (10:56 +0200)]
[FIX] website_mail: fixed template choice and body duplication in the email designer that was buddy; added some css to the page to make it more look like an email designer; also added a demo data for a template for mass mailing contacts in mass_mailing module.
Martin Trigaux [Tue, 3 Jun 2014 08:48:26 +0000 (10:48 +0200)]
[FIX] gamification: do not group on agregated field for sum
The read_group behaviour has changed and read_group no longer sum on the field you are grouping.
Instead agregate on the field we want to sum and use no groupby.
For future version, grouping on a user such as what is done in batch mode is a better way to process.
Martin Trigaux [Tue, 3 Jun 2014 08:20:55 +0000 (10:20 +0200)]
[FIX] read_group: do not change the return format of the read group in case of no groupby_fields and keep the same return format as with groupby fields (a list of dict)
Thibault Delavallée [Tue, 3 Jun 2014 06:55:00 +0000 (08:55 +0200)]
[FIX] sales_team, crm: fixed sales_team form view: alias data was not displayed due to wrongly done inheritance + fixed a typo hidden in the view
Olivier Dony [Mon, 2 Jun 2014 17:47:03 +0000 (19:47 +0200)]
[FIX] procurement: restore fixes for background procurement from rev.9b6f5dc, accidentally reverted by v8 WMS branch
Probably forgotten during a sync with master, as the
fixes belong to a different file now.
This is the second part of the fix in previous commit.
Olivier Dony [Mon, 2 Jun 2014 16:57:26 +0000 (18:57 +0200)]
[FIX] procurement: restore fix for background procurement from 9b6f5dc, accidentally reverted by WMS branch for v8
Probably forgotten during a sync with master, as the
fix belongs to a different file now.
Denis Ledoux [Mon, 2 Jun 2014 16:47:41 +0000 (18:47 +0200)]
[FIX] auth_oauth: missing res_users.py diff from rev
33bfec21743c9200f491bd0ddcc6d368cd948f85
Most probably due to github migration
+ fix: directly redirect to login redirect paramas, instead of redirecting on the complete web/login + redirect url
OstapYakovenko [Mon, 2 Jun 2014 16:37:52 +0000 (18:37 +0200)]
[FIX] hr_timesheet_sheet: fix typo in field name
Martin Trigaux [Mon, 2 Jun 2014 16:00:25 +0000 (18:00 +0200)]
[FIX] calendar: avoid double popup, opw 606297
Some browsers (e.g. chrome) trigger onEmptyClick as well as
onBeforeLightbox during drag&drop which calls two slow_create
calls (and two popups). Workaround to kill the second one.
Martin Trigaux [Mon, 2 Jun 2014 16:10:36 +0000 (18:10 +0200)]
Merge pull request #286 from jbq/bugfix
[FIX] mail: detection of MIME type
When parsing the mail headers, the content-type may has a 'type' attribute for Multipart/Related objects (rfc2387).
Previous check would match on attached files of type text instead of real `content-type: text/`.
Cédric Snauwaert [Mon, 2 Jun 2014 15:15:08 +0000 (17:15 +0200)]
Merge pull request #300 from odoo-dev/saas-4-modal-kanban-fix-csn
[FIX]modal close function in kanban and edi
Cedric Snauwaert [Mon, 2 Jun 2014 14:41:58 +0000 (16:41 +0200)]
[FIX]modal close function in kanban and edi
Christophe Matthieu [Mon, 2 Jun 2014 13:48:24 +0000 (15:48 +0200)]
[FIX] product: check if context is none in _set_standard_price before check context keys
Christophe Simonis [Mon, 2 Jun 2014 13:38:02 +0000 (15:38 +0200)]
[FIX] http: change the way the routing map is build
Instead of only taking direct subclasses of controllers, take the lowest controller in the hierarchy
Allowing subclassing controllers
Christophe Simonis [Mon, 2 Jun 2014 13:17:58 +0000 (15:17 +0200)]
[FIX] auth_oauth: controller need to inherit from auth_signup controller
Thibault Delavallée [Mon, 2 Jun 2014 11:52:27 +0000 (13:52 +0200)]
[FIX] mass_mailing: fixes:
- fixed keeping the original message for routing, only when choosing to reply in the
original thread (notification=True)
- auto delete sent emails explicitely
- mail_thread: routing: fixed replies always choosen even when replying to emails
with a specified reply_to (using ref_match in the algorithm)
- mail_thread: routing: instead of exclusive routing heuristics, use each case
as a fallback of the previous.
Denis Ledoux [Mon, 2 Jun 2014 11:00:36 +0000 (13:00 +0200)]
[FIX] base: security, do not override basic ir_config_paramter ACL
Denis Ledoux [Mon, 2 Jun 2014 10:57:57 +0000 (12:57 +0200)]
[FIX] base: security, group settings is authorized to alter ir.config_parameter
Denis Ledoux [Mon, 2 Jun 2014 10:02:11 +0000 (12:02 +0200)]
[FIX] calendar: replace end_type = final_date by end_date, the actual right selection
Jean-Baptiste Quenot [Wed, 28 May 2014 13:45:29 +0000 (15:45 +0200)]
Fix detection of MIME type in message_parse()
Be careful, content-type may contain tricky content like in the
following example so test the MIME type with startswith()
Content-Type: multipart/related;
boundary="_004_3f1e4da175f349248b8d43cdeb9866f1AMSPR06MB343eurprd06pro_";
type="text/html"
Denis Ledoux [Sun, 1 Jun 2014 23:37:45 +0000 (01:37 +0200)]
[FIX] mail: mail routing, allow more fallback cases
Specifically, allow mail to fallback in aliases if the post in the document res_model/res_id wasnt succesful
Denis Ledoux [Sun, 1 Jun 2014 20:10:54 +0000 (22:10 +0200)]
[FIX] mail: commited pudb ... its late and it has been a while since the last time : ).
Denis Ledoux [Sun, 1 Jun 2014 20:08:56 +0000 (22:08 +0200)]
[FIX] mass_mailing: on mass mailing sending, set same_thread for message composer
same_thread boolean field of mail.compose.message model define wether or not replies should be posted in the thread or not
On composer creation, this boolean should be passed according to the reply_to_mode of the mass_mailing
Otherwise, all replies would be posted in the thread, and the reply_to will be ignored (if same_thread id True, reply_to is poped from the mails values, mail/wizard/mail_compose_message.py:284)
Denis Ledoux [Sun, 1 Jun 2014 19:45:26 +0000 (21:45 +0200)]
[FIX] mass_mailing: avoid to eval an undefined domain
Denis Ledoux [Sun, 1 Jun 2014 19:27:55 +0000 (21:27 +0200)]
[FIX] mail: do not link email to a model/res_id if this model doesn't support new message
Denis Ledoux [Sun, 1 Jun 2014 18:20:21 +0000 (20:20 +0200)]
[FIX] website_sale: missing openerp.tools import
Christophe Simonis [Sun, 1 Jun 2014 12:30:15 +0000 (14:30 +0200)]
[FIX] website: correct "/" redirect to first menu
Christophe Simonis [Sun, 1 Jun 2014 09:19:03 +0000 (11:19 +0200)]
[MERGE] forward port of branch saas-4 up to revid c319dc4
Christophe Simonis [Sun, 1 Jun 2014 09:17:09 +0000 (11:17 +0200)]
[FIX] mail: view_mode "list" does not exists, it's "tree"
Christophe Simonis [Sun, 1 Jun 2014 08:56:39 +0000 (10:56 +0200)]
[MERGE] forward port of branch saas-3 up to revid faace84
Christophe Simonis [Sun, 1 Jun 2014 08:52:02 +0000 (10:52 +0200)]
[FIX] email_template: partners ids are integers, not strings
Christophe Simonis [Sat, 31 May 2014 13:37:23 +0000 (15:37 +0200)]
[FIX] website_sale: so javascipt does not like tuples. use a list instead
Christophe Simonis [Sat, 31 May 2014 12:05:48 +0000 (14:05 +0200)]
[FIX] website_sale: remove invalid (and stupid) function field
Olivier Dony [Fri, 30 May 2014 23:48:55 +0000 (01:48 +0200)]
[FIX] website_mail_group: duplicate preventDefault() call (called before onclick already)
Plus it fails because `event` is not defined nor passed there (e.g. in Firefox)
Christophe Simonis [Fri, 30 May 2014 21:05:34 +0000 (23:05 +0200)]
[REL] saas-5
Christophe Simonis [Fri, 30 May 2014 20:54:05 +0000 (22:54 +0200)]
Merge pull request #278 from odoo-dev/master-bank-reconcile-ama
[IMP] account: bank statement reconciliation widget
qdp-odoo [Fri, 30 May 2014 20:25:52 +0000 (22:25 +0200)]
[FIX] account: fixed inconsistence in yaml test since some demo data was added