Thibault Delavallée [Wed, 13 Aug 2014 14:45:36 +0000 (16:45 +0200)]
[FIX] mass_mailing: fixed label of ab testing not displayed in mailing
form view when not using campaigns; however this option should be displayed.
Thibault Delavallée [Wed, 13 Aug 2014 12:47:35 +0000 (14:47 +0200)]
[FIX] mail: posting on the user should be redirect to its partner, not nowhere.
Thibault Delavallée [Wed, 13 Aug 2014 12:35:25 +0000 (14:35 +0200)]
[FIX] mail: when having only mail installed, do not show any 'share with my followers' compose box. This comes only with hr, for the inbox. This was probably forgotten when updating the mailboxes hr-goal and hr-related gamification / chatter stuff.
Denis Ledoux [Wed, 13 Aug 2014 14:14:56 +0000 (16:14 +0200)]
[FIX] purchase: add purchase_order_count in kanban for purchase users only
No need to set account.group_account_manager for the field supplier_invoice_count, as account.group_account_manager implies account.group_account_user
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.
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.
Olivier Dony [Wed, 13 Aug 2014 08:51:39 +0000 (10:51 +0200)]
[IMP] website: do not translate sitemap URL
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.
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
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
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)
Josse Colpaert [Thu, 7 Aug 2014 15:41:11 +0000 (17:41 +0200)]
[FIX] Don't change to product_uom_qty if not move
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
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
Josse Colpaert [Wed, 6 Aug 2014 12:09:58 +0000 (14:09 +0200)]
[IMP] Condition tag would not be upgraded when migrating
Josse Colpaert [Tue, 5 Aug 2014 13:39:17 +0000 (15:39 +0200)]
[IMP] No attrs for taxes and income/expense accounts
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
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
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
Fabien Pinckaers [Tue, 12 Aug 2014 11:06:08 +0000 (13:06 +0200)]
[IMP] Footer message according to installed apps
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.
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.
Fabien Pinckaers [Tue, 12 Aug 2014 09:33:15 +0000 (11:33 +0200)]
[IMP] Maifest for Github README.md on main apps
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
Fabien Pinckaers [Tue, 12 Aug 2014 08:50:17 +0000 (10:50 +0200)]
[ADD] README.md for CRM
Fabien Pinckaers [Tue, 12 Aug 2014 07:18:44 +0000 (09:18 +0200)]
Update README.md
Fabien Pinckaers [Tue, 12 Aug 2014 07:15:51 +0000 (09:15 +0200)]
[IMP] Update Readme, business apps
Fabien Pinckaers [Tue, 12 Aug 2014 06:52:14 +0000 (08:52 +0200)]
[IMP] Update Readme, business apps
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
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
Grover Menacho [Mon, 11 Aug 2014 15:58:15 +0000 (11:58 -0400)]
[FIX] point_of_sale: DOM Cache Error
Christophe Simonis [Mon, 11 Aug 2014 15:37:46 +0000 (17:37 +0200)]
[FIX] ir_cron: typo introduced in commit a3d6b3a
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
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
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
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
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
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
Richard Mathot [Mon, 11 Aug 2014 14:51:42 +0000 (16:51 +0200)]
[FIX] ir_cron: typo introduced in fwdport
ae65be2b2ae98860f70a7e6f3d7679c40ea9bd93
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.
Olivier Dony [Mon, 11 Aug 2014 13:56:06 +0000 (15:56 +0200)]
[IMP] mail.mail: unused `import re`
Denis Ledoux [Mon, 11 Aug 2014 14:03:41 +0000 (16:03 +0200)]
[FIX] ir_cron: forgotten conflict from forward port
ae65be2b2ae98860f70a7e6f3d7679c40ea9bd93
Denis Ledoux [Mon, 11 Aug 2014 13:52:15 +0000 (15:52 +0200)]
[MERGE] forward port of branch saas-5 up to 0739bc4
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.
Denis Ledoux [Mon, 11 Aug 2014 13:31:04 +0000 (15:31 +0200)]
[MERGE] forward port of branch saas-4 up to 7ecaab9
Denis Ledoux [Mon, 11 Aug 2014 13:30:37 +0000 (15:30 +0200)]
[MERGE] forward port of branch saas-3 up to 2f4be42
Denis Ledoux [Mon, 11 Aug 2014 13:28:54 +0000 (15:28 +0200)]
[MERGE] forward port of branch 7.0 up to 3632949
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
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
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)
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
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
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()
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.
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)
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).
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
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)
Denis Ledoux [Mon, 11 Aug 2014 08:32:08 +0000 (10:32 +0200)]
[FIX] website: seo, url encode params, + handle connection breaks
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
watermelonjuice [Sun, 10 Aug 2014 04:47:17 +0000 (00:47 -0400)]
[FIX] website_forum: Minor grammar error
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.
Denis Ledoux [Fri, 8 Aug 2014 15:27:29 +0000 (17:27 +0200)]
[MERGE] forward port of branch saas-4 up to 0a1e4a0
Richard Mathot [Fri, 8 Aug 2014 15:04:47 +0000 (17:04 +0200)]
[FIX] survey: regressions introduced in forward-port
fd4fd35e3239c771ab9d692f47f61770ae882965
Denis Ledoux [Fri, 8 Aug 2014 15:06:39 +0000 (17:06 +0200)]
[MERGE] forward port of branch saas-3 up to 81a902a
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.
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
Denis Ledoux [Fri, 8 Aug 2014 14:18:35 +0000 (16:18 +0200)]
[MERGE] forward port of branch 7.0 up to 5f696ba
Denis Ledoux [Fri, 8 Aug 2014 14:05:32 +0000 (16:05 +0200)]
[FIX] pos: display cashier name on receipt, not the user
Jeremy Kersten [Fri, 8 Aug 2014 13:51:35 +0000 (15:51 +0200)]
[FIX] wesbite: update google analytics snippet according to google recommandation
Christophe Simonis [Thu, 7 Aug 2014 14:56:40 +0000 (16:56 +0200)]
[FIX] survey: use relative urls for url actions
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.
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)
Raphael Collet [Fri, 8 Aug 2014 12:34:29 +0000 (14:34 +0200)]
[IMP] api: improve documentation of decorators constrains, depends, onchange
Olivier Dony [Fri, 8 Aug 2014 12:17:37 +0000 (14:17 +0200)]
[FIX] base: tests: move test menu under correct root
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.
Raphael Collet [Fri, 8 Aug 2014 08:45:17 +0000 (10:45 +0200)]
[IMP] refactoring: move function topological_sort to openerp.tools
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).
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
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)
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.
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
Richard Mathot [Fri, 8 Aug 2014 08:53:39 +0000 (10:53 +0200)]
[FIX] read_group cannot aggregate non-stored field
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.
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
watermelonjuice [Thu, 7 Aug 2014 19:47:27 +0000 (15:47 -0400)]
[FIX] Wrong apt url in README.md
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.
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).
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().
Denis Ledoux [Thu, 7 Aug 2014 16:20:13 +0000 (18:20 +0200)]
[MERGE] forward port of branch 7.0 up to a86dfb8
Martin Trigaux [Thu, 7 Aug 2014 14:51:46 +0000 (16:51 +0200)]
[FIX] mail: avoid duplication followers when merging partners
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.
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).
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
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.
Olivier Dony [Thu, 7 Aug 2014 10:41:33 +0000 (12:41 +0200)]
[IMP] orm.Field: doc for @copy attribute
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
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
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.
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