odoo/odoo.git
9 years ago[FIX] mail, email_template: prevent user from creating
Thibault Delavallée [Wed, 13 Aug 2014 10:22:51 +0000 (12:22 +0200)]
[FIX] mail, email_template: prevent user from creating
templates in the templat_idm2o field on the wizard; prevent users from
creating models in the model_id m2o field on the template form view.

9 years ago[FIX] ir.translation: export/import of QWeb terms
Olivier Dony [Wed, 13 Aug 2014 09:08:02 +0000 (11:08 +0200)]
[FIX] ir.translation: export/import of QWeb terms

Fixes the translation term import/export logic to
support terms inside QWeb templates.

Refactored a bit the export code so the babel-based
QWeb terms extractor for ./static/src/*.xml files
uses the same logic as the regular extractor for
ir.ui.views with type QWeb.

Server-side QWeb rendering uses a mix of the native
 view inheritance mechanism and the template inclusion
(t-call) mechanism. During rendering the translations
are only applied at "template" level, *after* the
view inheritance has already been resolved.
As a result translations are local to a template,
not to the inherited view in which they are actually
written.
In terms of exporting PO[T] files, this is done by
resolving the "root" QWeb template a view belongs
to, and using it as the location of the translated term.

During import there is one extra quirk for QWeb
terms: they need to be linked to the `website` model
rather than the actual `ir.ui.view` model they
are really pointing to, so the rendering phase can
properly recognize them.

9 years ago[IMP] website: do not translate sitemap URL
Olivier Dony [Wed, 13 Aug 2014 08:51:39 +0000 (10:51 +0200)]
[IMP] website: do not translate sitemap URL

9 years ago[FIX] orm field (new api): preserve empty values instead of folding to False
Olivier Dony [Wed, 13 Aug 2014 08:44:05 +0000 (10:44 +0200)]
[FIX] orm field (new api): preserve empty values instead of folding to False

The new API introduced a small behavior change where empty
string values written or stored in a char/text field were
replaced by False (i.e. as if they were NULL).
This was done to mimic the web client behavior, but introduces
a very surprising effect: a.name = ""; assert a.name == "";
would fail. It would also require many more tests in the
code when reading existing required values from the database,
as they could still be False when an empty string value
had previously been stored, for some reason.

9 years ago[IMP] models.py: _auto_init: accelerate row existance check
Christophe Simonis [Tue, 12 Aug 2014 16:38:55 +0000 (18:38 +0200)]
[IMP] models.py: _auto_init: accelerate row existance check

Using `COUNT(1)` on big table can be slow. Use `min(id)` which use
pkey index to have a quicker response

9 years agoMerge pull request #1663 from odoo-dev/8.0-wmsstaging5-jco
Josse Colpaert [Tue, 12 Aug 2014 14:12:42 +0000 (16:12 +0200)]
Merge pull request #1663 from odoo-dev/8.0-wmsstaging5-jco

8.0 wmsstaging5 jco various fixes from support and github issues

9 years ago[IMP] Not necessary as operations are computed, but more logical to do action_pack...
Josse Colpaert [Tue, 12 Aug 2014 13:18:34 +0000 (15:18 +0200)]
[IMP] Not necessary as operations are computed, but more logical to do action_pack as dropdown(process)

9 years ago[FIX] Don't change to product_uom_qty if not move
Josse Colpaert [Thu, 7 Aug 2014 15:41:11 +0000 (17:41 +0200)]
[FIX] Don't change to product_uom_qty if not move

9 years ago[FIX] Change two-one step wh, multi-comp wh, quantity field float, show product_uom_q...
Josse Colpaert [Thu, 7 Aug 2014 15:08:16 +0000 (17:08 +0200)]
[FIX] Change two-one step wh, multi-comp wh, quantity field float, show product_uom_qty instead of product_qty in mrp production for moves

9 years ago[IMP] Type manufacturing orders, remove double accounting entries, child_of, push...
Josse Colpaert [Wed, 6 Aug 2014 12:44:45 +0000 (14:44 +0200)]
[IMP] Type manufacturing orders, remove double accounting entries, child_of, push rule global has no route

9 years ago[IMP] Condition tag would not be upgraded when migrating
Josse Colpaert [Wed, 6 Aug 2014 12:09:58 +0000 (14:09 +0200)]
[IMP] Condition tag would not be upgraded when migrating

9 years ago[IMP] No attrs for taxes and income/expense accounts
Josse Colpaert [Tue, 5 Aug 2014 13:39:17 +0000 (15:39 +0200)]
[IMP] No attrs for taxes and income/expense accounts

9 years ago[IMP] is_product_variant not needed in most views + no delete in stock valuation...
Josse Colpaert [Tue, 5 Aug 2014 13:16:53 +0000 (15:16 +0200)]
[IMP] is_product_variant not needed in most views + no delete in stock valuation history

9 years ago[IMP] Gives warning when the product needs tracking in bar code interface + pack...
Josse Colpaert [Tue, 5 Aug 2014 09:43:31 +0000 (11:43 +0200)]
[IMP] Gives warning when the product needs tracking in bar code interface + pack ops with packs don't need lot for related moves

9 years ago[IMP] Average price correction + Lot should be changeable in bar code interface
Josse Colpaert [Tue, 5 Aug 2014 08:08:52 +0000 (10:08 +0200)]
[IMP] Average price correction + Lot should be changeable in bar code interface

9 years ago[IMP] Footer message according to installed apps
Fabien Pinckaers [Tue, 12 Aug 2014 11:06:08 +0000 (13:06 +0200)]
[IMP] Footer message according to installed apps

9 years ago[IMP] ORM: Coalesce NULL boolean values to false when generating ORDER BY
Olivier Dony [Tue, 12 Aug 2014 10:07:10 +0000 (12:07 +0200)]
[IMP] ORM: Coalesce NULL boolean values to false when generating ORDER BY

After commit f28be81, boolean columns may have more
NULL entries than before. In the (rare) cases where
a boolean column was used for an ORDER clause
(e.g. in the /shop page of website_sale), this
causes a change of the resulting ordering.

By coalescing NULL values to false in SQL,
we make the ordering consistent with what the
framework does for domain expressions with booleans,
and when reading boolean values, that is, NULL is
the same as False.

9 years ago[FIX] website_sale: partially revert 086cfd5.
Christophe Simonis [Tue, 12 Aug 2014 10:16:36 +0000 (12:16 +0200)]
[FIX] website_sale: partially revert 086cfd5.

Use less specific css selectors in "buy product" tour.

9 years ago[IMP] Maifest for Github README.md on main apps
Fabien Pinckaers [Tue, 12 Aug 2014 09:33:15 +0000 (11:33 +0200)]
[IMP] Maifest for Github README.md on main apps

9 years ago[FIX] website_sale: correct "buy product" tour to search the product before selecting it
Christophe Simonis [Tue, 12 Aug 2014 09:26:32 +0000 (11:26 +0200)]
[FIX] website_sale: correct "buy product" tour to search the product before selecting it

9 years ago[ADD] README.md for CRM
Fabien Pinckaers [Tue, 12 Aug 2014 08:50:17 +0000 (10:50 +0200)]
[ADD] README.md for CRM

9 years agoUpdate README.md
Fabien Pinckaers [Tue, 12 Aug 2014 07:18:44 +0000 (09:18 +0200)]
Update README.md

9 years ago[IMP] Update Readme, business apps
Fabien Pinckaers [Tue, 12 Aug 2014 07:15:51 +0000 (09:15 +0200)]
[IMP] Update Readme, business apps

9 years ago[IMP] Update Readme, business apps
Fabien Pinckaers [Tue, 12 Aug 2014 06:52:14 +0000 (08:52 +0200)]
[IMP] Update Readme, business apps

9 years agoMerge pull request #1731 from hmen89/8.0-pos-dom-cache-fix
Frédéric Van der Essen [Mon, 11 Aug 2014 16:12:01 +0000 (18:12 +0200)]
Merge pull request #1731 from hmen89/8.0-pos-dom-cache-fix

[FIX] point_of_sale: DOM Cache Error

9 years ago[FIX] point_of_sale: #1558 The partner was not correctly identified on the bank state...
Frederic van der Essen [Mon, 11 Aug 2014 16:01:49 +0000 (18:01 +0200)]
[FIX] point_of_sale: #1558 The partner was not correctly identified on the bank statement line, creating open balances on the partner account

9 years ago[FIX] point_of_sale: DOM Cache Error
Grover Menacho [Mon, 11 Aug 2014 15:58:15 +0000 (11:58 -0400)]
[FIX] point_of_sale: DOM Cache Error

9 years ago[FIX] ir_cron: typo introduced in commit a3d6b3a
Christophe Simonis [Mon, 11 Aug 2014 15:37:46 +0000 (17:37 +0200)]
[FIX] ir_cron: typo introduced in commit a3d6b3a

9 years ago[FIX] point_of_sale: support for variants in the pos, one simply needed to use the...
Frederic van der Essen [Mon, 11 Aug 2014 14:56:01 +0000 (16:56 +0200)]
[FIX] point_of_sale: support for variants in the pos, one simply needed to use the display_name which contains the product variant info.

Conflicts:
addons/point_of_sale/static/src/js/models.js

9 years ago[IMP] point_of_sale: make the confirm action color less frightening & longer delay
Frederic van der Essen [Mon, 11 Aug 2014 11:39:39 +0000 (13:39 +0200)]
[IMP] point_of_sale: make the confirm action color less frightening & longer delay

9 years ago[FIX] point_of_sale: it was too easy to accidentally hit the close button on ipads...
Frederic van der Essen [Fri, 8 Aug 2014 13:27:06 +0000 (15:27 +0200)]
[FIX] point_of_sale: it was too easy to accidentally hit the close button on ipads, made it double click only

9 years ago[FIX] point_of_sale: order sequence number should take into account offline generated...
Frederic van der Essen [Fri, 8 Aug 2014 14:52:22 +0000 (16:52 +0200)]
[FIX] point_of_sale: order sequence number should take into account offline generated orders

9 years ago[FIX] point_of_sale: partners should be searchable by phone or mobile number
Frederic van der Essen [Fri, 8 Aug 2014 14:03:38 +0000 (16:03 +0200)]
[FIX] point_of_sale: partners should be searchable by phone or mobile number

9 years ago[FIX] point_of_sale: order buttons were too big to be used on tablets
Frederic van der Essen [Fri, 8 Aug 2014 12:43:19 +0000 (14:43 +0200)]
[FIX] point_of_sale: order buttons were too big to be used on tablets

9 years ago[FIX] ir_cron: typo introduced in fwdport
Richard Mathot [Mon, 11 Aug 2014 14:51:42 +0000 (16:51 +0200)]
[FIX] ir_cron: typo introduced in fwdport
ae65be2b2ae98860f70a7e6f3d7679c40ea9bd93

9 years ago[IMP] mail.mail: simplify: no default for `headers` field
Olivier Dony [Mon, 11 Aug 2014 14:02:08 +0000 (16:02 +0200)]
[IMP] mail.mail: simplify: no default for `headers` field

This avoids storing useless "{}" values
in the database when there are no headers,
and avoids having to update all existing
entries when this column is added.
Just requires simple tests before evaluating
the headers contents.

9 years ago[IMP] mail.mail: unused `import re`
Olivier Dony [Mon, 11 Aug 2014 13:56:06 +0000 (15:56 +0200)]
[IMP] mail.mail: unused `import re`

9 years ago[FIX] ir_cron: forgotten conflict from forward port ae65be2b2ae98860f70a7e6f3d7679c40...
Denis Ledoux [Mon, 11 Aug 2014 14:03:41 +0000 (16:03 +0200)]
[FIX] ir_cron: forgotten conflict from forward port ae65be2b2ae98860f70a7e6f3d7679c40ea9bd93

9 years ago[MERGE] forward port of branch saas-5 up to 0739bc4
Denis Ledoux [Mon, 11 Aug 2014 13:52:15 +0000 (15:52 +0200)]
[MERGE] forward port of branch saas-5 up to 0739bc4

9 years ago[FIX] mail: fixed bounce email recognition + invite email headers + mass mailing...
Thibault Delavallée [Tue, 5 Aug 2014 10:54:03 +0000 (12:54 +0200)]
[FIX] mail: fixed bounce email recognition + invite email headers + mass mailing statistics not lost anymore
- [FIX] bounce regex: too many emails were considered as bounce and therefore
not displayed in the chatter and lost for the communication history. The regex
was not correctly looking for the bounce alias in the email_to.
- [FIX] invite email: replying to the invitation email (invitation as new
follower) now replies to the user sending the invitation.
- [FIX] mass_mailing: added a column to store the id of the original email
in addition to the many2one column. The many2one is set to null when deleting
the original email. As the information is necessary, it is saved on another
field. The many2one is necessary for indexes purpose as the inverse of
a one2many.

9 years ago[MERGE] forward port of branch saas-4 up to 7ecaab9
Denis Ledoux [Mon, 11 Aug 2014 13:31:04 +0000 (15:31 +0200)]
[MERGE] forward port of branch saas-4 up to 7ecaab9

9 years ago[MERGE] forward port of branch saas-3 up to 2f4be42
Denis Ledoux [Mon, 11 Aug 2014 13:30:37 +0000 (15:30 +0200)]
[MERGE] forward port of branch saas-3 up to 2f4be42

9 years ago[MERGE] forward port of branch 7.0 up to 3632949
Denis Ledoux [Mon, 11 Aug 2014 13:28:54 +0000 (15:28 +0200)]
[MERGE] forward port of branch 7.0 up to 3632949

9 years ago[FIX] account_followup: total in foreign currency displayed in the right currency...
qdp-odoo [Mon, 11 Aug 2014 13:23:05 +0000 (15:23 +0200)]
[FIX] account_followup: total in foreign currency displayed in the right currency instead of company currency

9 years ago[FIX] web: image fields re-render on next/previous
Denis Ledoux [Mon, 11 Aug 2014 12:39:50 +0000 (14:39 +0200)]
[FIX] web: image fields re-render on next/previous

By default, on binary images read, the server returns the binary size
This is possible that two images have the exact same size
Therefore we trigger the change in case the image value hasn't changed
So the image is re-rendered correctly

9 years ago[FIX] css: add display table rule to oe_popup_form class
Cedric Snauwaert [Fri, 8 Aug 2014 12:09:44 +0000 (14:09 +0200)]
[FIX] css: add display table rule to oe_popup_form class

To correct the display of the "add contact" wizard in modal (buttons not well placed)

9 years ago[ADD] wms: add option to select package type in WMS barcode interface
Nicolas Seinlet [Thu, 7 Aug 2014 06:57:48 +0000 (08:57 +0200)]
[ADD] wms: add option to select package type in WMS barcode interface

9 years ago[FIX] account, point_of_sale: fixed the feature to put money in or take money out...
qdp-odoo [Mon, 11 Aug 2014 11:18:17 +0000 (13:18 +0200)]
[FIX] account, point_of_sale: fixed the feature to put money in or take money out of a cash register. Fix #1416

9 years ago[IMP] fields.boolean: simplify symbol_set, cast to bool
Olivier Dony [Mon, 11 Aug 2014 10:37:44 +0000 (12:37 +0200)]
[IMP] fields.boolean: simplify symbol_set, cast to bool

In combination with f28be81, this should help speed up
initialization of new boolean columns. psycopg2 handles
bool parameters values just fine inside cr.mogrify()

9 years ago[FIX] account_bank_statement_extensions: inadvertence error during cbe2dbb
Denis Ledoux [Mon, 11 Aug 2014 09:50:58 +0000 (11:50 +0200)]
[FIX] account_bank_statement_extensions: inadvertence error during cbe2dbb

Inadvertence error during the convertion to the new API.

line_ids is already a list, no need to set it again in a list.

9 years ago[IMP] models._auto_init: avoid writing `False` default for boolean fields
Olivier Dony [Mon, 11 Aug 2014 09:11:03 +0000 (11:11 +0200)]
[IMP] models._auto_init: avoid writing `False` default for boolean fields

Boolean fields always default to False in 8.0,
even when they do not have explicit default values.
This causes extra queries in the form:
  UPDATE <table> SET <bool_field> = false
      WHERE <bool_field> IS NULL;

Those are not necessary as the ORM automatically
folds NULL booleans to False, and can be very
expensive on tables with several million rows,
as the whole table may sometimes need to be
rewritten (can take dozens of minutes)

9 years ago[FIX] yaml tests: Set on_change keys not in view logger as debug instead of warning
Denis Ledoux [Mon, 11 Aug 2014 09:11:36 +0000 (11:11 +0200)]
[FIX] yaml tests: Set on_change keys not in view logger as debug instead of warning

This is related to commit d31faceb67fd87acaca00365dcfc28925b08a37f
(This is to avoid the runbot being yellow if on_change methods have extra keys in the returned value, this is not wrong, the web client will simply ignore them).

9 years ago[FIX] web_kanban : resequence column and content by drag and dropping
Jérome Maes [Mon, 11 Aug 2014 09:00:31 +0000 (11:00 +0200)]
[FIX] web_kanban : resequence column and content by drag and dropping

9 years ago[FIX] web: form view: priority and kanban widgets cleaning, now more like classic...
Thibault Delavallée [Fri, 8 Aug 2014 14:59:48 +0000 (16:59 +0200)]
[FIX] web: form view: priority and kanban widgets cleaning, now more like classic form widgets (edit mode: use set_value, view mode: perform a write)

9 years ago[FIX] website: seo, url encode params, + handle connection breaks
Denis Ledoux [Mon, 11 Aug 2014 08:32:08 +0000 (10:32 +0200)]
[FIX] website: seo, url encode params, + handle connection breaks

9 years ago[FIX] website: use internal route for SEO suggest keyword, old server is down
Jeremy Kersten [Mon, 4 Aug 2014 10:25:59 +0000 (12:25 +0200)]
[FIX] website: use internal route for SEO suggest keyword, old server is down

9 years ago[FIX] website_forum: Minor grammar error
watermelonjuice [Sun, 10 Aug 2014 04:47:17 +0000 (00:47 -0400)]
[FIX] website_forum: Minor grammar error

9 years ago[FIX] Calculate date interval using super user time zone
Samus CTO [Fri, 8 Aug 2014 09:46:41 +0000 (11:46 +0200)]
[FIX] Calculate date interval using super user time zone

When you set the date of a cron the July 1st at midnight, if the user
time zone has a positive offset, then the converted UTC date is the
June 30th and adding 1 month will end up on July 30th translating to
July 31th instead of September 1st.

To solve this issue we use the super user time zone for the date
calculation.

9 years ago[MERGE] forward port of branch saas-4 up to 0a1e4a0
Denis Ledoux [Fri, 8 Aug 2014 15:27:29 +0000 (17:27 +0200)]
[MERGE] forward port of branch saas-4 up to 0a1e4a0

9 years ago[FIX] survey: regressions introduced in forward-port fd4fd35e3239c771ab9d692f47f61770...
Richard Mathot [Fri, 8 Aug 2014 15:04:47 +0000 (17:04 +0200)]
[FIX] survey: regressions introduced in forward-port fd4fd35e3239c771ab9d692f47f61770ae882965

9 years ago[MERGE] forward port of branch saas-3 up to 81a902a
Denis Ledoux [Fri, 8 Aug 2014 15:06:39 +0000 (17:06 +0200)]
[MERGE] forward port of branch saas-3 up to 81a902a

9 years ago[FIX] sale_stock: product_id_change_with_wh should not call another method (product_i...
Thibault Delavallée [Fri, 8 Aug 2014 09:38:57 +0000 (11:38 +0200)]
[FIX] sale_stock: product_id_change_with_wh should not call another method (product_id_change) using super, but self. Otherwise some overrides are lost, leading to issues with event-related products.

9 years ago[FIX] website_mail: mail.message.check_access_rule: no check for super-user
Olivier Dony [Fri, 8 Aug 2014 14:56:44 +0000 (16:56 +0200)]
[FIX] website_mail: mail.message.check_access_rule: no check for super-user

9 years ago[MERGE] forward port of branch 7.0 up to 5f696ba
Denis Ledoux [Fri, 8 Aug 2014 14:18:35 +0000 (16:18 +0200)]
[MERGE] forward port of branch 7.0 up to 5f696ba

9 years ago[FIX] pos: display cashier name on receipt, not the user
Denis Ledoux [Fri, 8 Aug 2014 14:05:32 +0000 (16:05 +0200)]
[FIX] pos: display cashier name on receipt, not the user

9 years ago[FIX] wesbite: update google analytics snippet according to google recommandation
Jeremy Kersten [Fri, 8 Aug 2014 13:51:35 +0000 (15:51 +0200)]
[FIX] wesbite: update google analytics snippet according to google recommandation

9 years ago[FIX] survey: use relative urls for url actions
Christophe Simonis [Thu, 7 Aug 2014 14:56:40 +0000 (16:56 +0200)]
[FIX] survey: use relative urls for url actions

9 years ago[FIX] fields: generalize inverse_field to a list of inverse fields
Raphael Collet [Fri, 8 Aug 2014 12:04:40 +0000 (14:04 +0200)]
[FIX] fields: generalize inverse_field to a list of inverse fields

Some many2one fields happen to have several corresponding one2many fields,
typically with different domains. It is also the case for the field 'res_id' of
mail.message, where each model inheriting from mail.thread defines a one2many
based on that field. The fix ensures that when a relational field is updated,
all its inverse fields are invalidated.

9 years ago[IMP] sale_stock: do not verify inventory for non-stockable products (sale.order...
Olivier Dony [Fri, 8 Aug 2014 11:49:10 +0000 (13:49 +0200)]
[IMP] sale_stock: do not verify inventory for non-stockable products (sale.order.line onchange)

9 years ago[IMP] api: improve documentation of decorators constrains, depends, onchange
Raphael Collet [Fri, 8 Aug 2014 12:34:29 +0000 (14:34 +0200)]
[IMP] api: improve documentation of decorators constrains, depends, onchange

9 years ago[FIX] base: tests: move test menu under correct root
Olivier Dony [Fri, 8 Aug 2014 12:17:37 +0000 (14:17 +0200)]
[FIX] base: tests: move test menu under correct root

9 years ago[FIX] models: default_get() used to miss values
Raphael Collet [Fri, 8 Aug 2014 09:04:07 +0000 (11:04 +0200)]
[FIX] models: default_get() used to miss values

The default values are computed by evaluating fields on a new record. The fix
retrieves values from the cache earlier, because in some cases, the evaluation
of a field invalidates a formerly evaluated field.

9 years ago[IMP] refactoring: move function topological_sort to openerp.tools
Raphael Collet [Fri, 8 Aug 2014 08:45:17 +0000 (10:45 +0200)]
[IMP] refactoring: move function topological_sort to openerp.tools

9 years ago[FIX] account_anglo_savon: round prices according to account precision to avoid getti...
Martin Trigaux [Fri, 8 Aug 2014 10:29:47 +0000 (12:29 +0200)]
[FIX] account_anglo_savon: round prices according to account precision to avoid getting unbalanced move

The standard move_line_get from account.invoice returns prices rounded (price_subtotal field as account precision) while the anglo-saxon module could return dict with non-rounded prices.
With amounts with bigger precision, we could get a difference of a few cents when comparing the debit/credits and then not be able to balance the invoice (opw 597208).

9 years ago[FIX] point_of_sale: show_popup('name','comment') should display the comment in the...
Frederic van der Essen [Fri, 8 Aug 2014 11:48:33 +0000 (13:48 +0200)]
[FIX] point_of_sale: show_popup('name','comment') should display the comment in the popup

9 years ago[FIX] ir_actions in website: allow to compute website_path even when creating a new...
Thibault Delavallée [Fri, 8 Aug 2014 07:43:43 +0000 (09:43 +0200)]
[FIX] ir_actions in website: allow to compute website_path even when creating a new server action (avoid crash then)

9 years ago[FIX] yaml tests: extra key in on_change result isn't that bad.
Denis Ledoux [Fri, 8 Aug 2014 09:40:30 +0000 (11:40 +0200)]
[FIX] yaml tests: extra key in on_change result isn't that bad.

In the return result of an on_change, having keys which are not ine the view is not that bad, it is not an actual problem.

Display warning instead of asserting all the keys are in the views.

9 years ago[FIX] stock_landed_costs: fixed several issues related to the computation and the...
qdp-odoo [Fri, 8 Aug 2014 08:58:14 +0000 (10:58 +0200)]
[FIX] stock_landed_costs: fixed several issues related to the computation and the accounting entries creation. Added a yaml test to cover the different split methods

9 years ago[FIX] read_group cannot aggregate non-stored field
Richard Mathot [Fri, 8 Aug 2014 08:53:39 +0000 (10:53 +0200)]
[FIX] read_group cannot aggregate non-stored field

9 years agoMerge pull request #1649 from odoo-dev/8.0-fix-website_quote-scrollspy-chm
Christophe Matthieu [Fri, 8 Aug 2014 08:36:44 +0000 (10:36 +0200)]
Merge pull request #1649 from odoo-dev/8.0-fix-website_quote-scrollspy-chm

[FIX] website_quote: Must remove id created by the javascript of scroll spy.

9 years ago[FIX] account_analytic_plan: correctly check context
Hardik Ansodariya [Tue, 15 Jul 2014 06:03:49 +0000 (11:33 +0530)]
[FIX] account_analytic_plan: correctly check context

The id of the journal is passed in the context. Avoid trying to browse on jounral_id=False
Fixes #821

9 years ago[FIX] Wrong apt url in README.md
watermelonjuice [Thu, 7 Aug 2014 19:47:27 +0000 (15:47 -0400)]
[FIX] Wrong apt url in README.md

9 years ago[FIX] website_quote: scroll spy is crazy if the user change quote template. Must...
Christophe Matthieu [Wed, 6 Aug 2014 14:47:11 +0000 (16:47 +0200)]
[FIX] website_quote: scroll spy is crazy if the user change quote template. Must remove id created by the javascript of scroll spy.

9 years ago[FIX] project_timesheet: test used fields added not in dependencies
dhr-odoo [Fri, 18 Jul 2014 10:44:28 +0000 (16:14 +0530)]
[FIX] project_timesheet: test used fields added not in dependencies

The fields procure_method and supply_method are not present if we just install project_timesheet which makes the tests fail (opw 610590).

9 years ago[IMP] fields.Date[Time]: convert_to_cache: avoid costly parsing when not validating
Olivier Dony [Thu, 7 Aug 2014 10:56:13 +0000 (12:56 +0200)]
[IMP] fields.Date[Time]: convert_to_cache: avoid costly parsing when not validating

The extra parsing check is not necessary when we're
not validating inputs, because in that case the
values come from the database and are valid.
The validation is quite expensive due to calls
to strptime() + strftime().

9 years ago[MERGE] forward port of branch 7.0 up to a86dfb8
Denis Ledoux [Thu, 7 Aug 2014 16:20:13 +0000 (18:20 +0200)]
[MERGE] forward port of branch 7.0 up to a86dfb8

9 years ago[FIX] mail: avoid duplication followers when merging partners
Martin Trigaux [Thu, 7 Aug 2014 14:51:46 +0000 (16:51 +0200)]
[FIX] mail: avoid duplication followers when merging partners

9 years ago[IMP] crm: clean after partner merge
Martin Trigaux [Thu, 7 Aug 2014 14:50:38 +0000 (16:50 +0200)]
[IMP] crm: clean after partner merge

When trying to merge partners, an sql error may be violated (e.g. unique constraints).
In this case, catch the error and delete the problematic record as it will no longer be relevant with the old partner and left unconsistant data in the database.

9 years ago[FIX] website_sale: avoid displaying inactive products in shops
Martin Trigaux [Thu, 7 Aug 2014 16:15:37 +0000 (18:15 +0200)]
[FIX] website_sale: avoid displaying inactive products in shops

The domains in the form ('o2m_field', operator, False) do not use the orm but convert the domain to ('id', 'invert operator', [list of ids]). This means that the orm is not used and implicit filter (active=True) or access rights are not checked.
A proper fix in master should be done to use the orm instead of an SQL query.
This patch force a search to be made on product.product and then exclude the products where active=False (opw 607602).

9 years ago[FIX] web_kanban: in non-grouped kanban, on switch to form, display first record
Denis Ledoux [Thu, 7 Aug 2014 16:04:13 +0000 (18:04 +0200)]
[FIX] web_kanban: in non-grouped kanban, on switch to form, display first record

in view_form.js, in do_show method, if the dataset index is not set, the on_button_new method is triggered, opening a new record
In regular kanbans (non-grouped kanban), the dataset index wasn't set, and, therefore, when switching to the view mode, it opened a form for a new record instead of opening the first record of the list, like this is the case for the view list and the grouped kanban

9 years ago[IMP] hr,mail,product,project,base: use @auto_join=True on _inherits FK field
Olivier Dony [Thu, 7 Aug 2014 10:50:13 +0000 (12:50 +0200)]
[IMP] hr,mail,product,project,base: use @auto_join=True on _inherits FK field

This can give a performance boost on large databases
and should not be a concern in terms of access control
as the inheritance already grants access to the parent
records.

9 years ago[IMP] orm.Field: doc for @copy attribute
Olivier Dony [Thu, 7 Aug 2014 10:41:33 +0000 (12:41 +0200)]
[IMP] orm.Field: doc for @copy attribute

9 years ago[IMP] calendar.event: _compute should be done in batch + consistent @multi attributes
Olivier Dony [Tue, 5 Aug 2014 15:49:47 +0000 (17:49 +0200)]
[IMP] calendar.event: _compute should be done in batch + consistent @multi attributes

9 years ago[FIX] calendar.read: do not re-compute `display_time` for virtual calendar ID if...
Olivier Dony [Tue, 5 Aug 2014 15:40:22 +0000 (17:40 +0200)]
[FIX] calendar.read: do not re-compute `display_time` for virtual calendar ID if not requested

9 years ago[IMP] calendar: simplify/optimize `rrule` computed field
Olivier Dony [Tue, 5 Aug 2014 15:22:56 +0000 (17:22 +0200)]
[IMP] calendar: simplify/optimize `rrule` computed field

Avoid reading one record at a time, leading to multiple
calls to read() which is special-cased and even slower
than a normal one.

9 years ago[IMP] ir.qweb: avoid repeatedly searching the registry for nonexistant widget models
Olivier Dony [Tue, 5 Aug 2014 15:19:36 +0000 (17:19 +0200)]
[IMP] ir.qweb: avoid repeatedly searching the registry for nonexistant widget models

9 years ago[IMP] email_template: add a lambda function to allow a user to format a date from...
Jeremy Kersten [Thu, 7 Aug 2014 15:38:01 +0000 (17:38 +0200)]
[IMP] email_template: add a lambda function to allow a user to format a date from a template mail into a specific timezone, and/or in a specific format.

Eg: ${format_tz(object.name, object.employee_id.address_id.tz,'%m/%d/%Y %H:%M')}

9 years ago[FIX] account_voucher: fix typo in journal_id type
Somesh Khare [Thu, 7 Aug 2014 14:57:23 +0000 (16:57 +0200)]
[FIX] account_voucher: fix typo in journal_id type

9 years ago[FIX] mail, BaseModel, portal_sale: fixes and improvements in the URL
Thibault Delavallée [Thu, 7 Aug 2014 12:43:21 +0000 (14:43 +0200)]
[FIX] mail, BaseModel, portal_sale: fixes and improvements in the URL
management to access documents in notification emails, as well as for the
'view quotation' link in portal_sale module.

models: added a get_access_action method: basically, returns the action to
access a document. It uses the get_formview_action by default (form view
of the document). However for some documents we want to directly go to the
website, leading to an act_url action for some documents. This method allows
this behavior.

portal_sale: get_signup_url now uses the mail.action_mail_redirect method
instead of directly redirecting towards a portal menu. This allows to fall
back on a standard behavior.

portal_sale: get_formview_action updated, to match actions tailored for
portal users.

website_quote: get_access_action of sale order updated. If the sale order
has a template defined, the returned action is an act_url (website view
of the quotation), not the form action anymore.

mail: fixed signature + company signature in notification emails. Even without
user signature, the company signature + access link should be correct.

portal: signup url in notification emali was not using the mail redirection
as action. It is now the case.

9 years ago[FIX] email_template: when generating body containing the user's signature, add it...
Thibault Delavallée [Thu, 7 Aug 2014 12:34:58 +0000 (14:34 +0200)]
[FIX] email_template: when generating body containing the user's signature, add it as html as it is now pure html, not plaintext anymore.