Commit Graph
104610 Commits
Author SHA1 Message Date
Thibault Delavallée 599bd5092b [FIX] mail: fix inline attachments having the same name always taking first found attachment 2016-09-26 11:43:14 +02:00
bfotop f9881b23bb [CLA] Add ICLA signature for Basilis Fotopoulos 2016-09-26 11:21:29 +02:00
Christophe Matthieu 7b2e857c2f [FIX] website: promote: very slow title edition when use keywords 2016-09-26 10:20:55 +02:00
Christophe Matthieu 34efcb498d [FIX] web: can't saved X2Many list editable if a deleted record is invalid
The widget test if all lines are valid to save the view, but the test include the removed lines (eg: required field).
2016-09-26 10:12:15 +02:00
Cesar Lage 4ab34d4156 [FIX] l10n_de: set reconciled to False for accounts of type liquidity… (#13520)
Courtesy of Cesar Lage. Thanks for the contribution
2016-09-26 09:43:08 +02:00
Odoo Translation Bot 6baef31c8f [I18N] Update translation terms from Transifex 2016-09-25 02:59:19 +02:00
Odoo Translation Bot 2a893606ae [I18N] Update translation terms from Transifex 2016-09-25 00:40:39 +02:00
Pierre Masereel b7af7004d7 [FIX] web: scroll view in community
Since the merge of the two modules 'web' from enterprise and community
it was impossible to scroll in the side menu and in the main content
of a community database from Internet Explorer 10 & 11 but it is working in
Edge.

This was due to missing css 'height' attribute on the '.o_main' class
that should be set to 100% for IE to let the flex elements know the
size of their parent.

This was introduced in rev https://github.com/odoo/odoo/commit/977db823c
2016-09-23 14:48:26 +02:00
Jeremy Kersten 5f90769f41 [FIX] website_sale: SignIn url if SignUp not allowed 2016-09-23 14:46:48 +02:00
Jeremy Kersten 0ee98f4b42 [FIX] website_sale: fix display price in cart. 2016-09-23 13:21:08 +02:00
Jeremy Kersten 81447ca711 [FIX] website_sale: set payment_term_immediate by default in shop 2016-09-23 13:21:08 +02:00
Denis Vermylen (dve) e980915b49 [FIX] account: aged partner balance report title
the report pdf was titled "Aged Trial Balance" with Trial instead of Partner.
2016-09-23 12:32:15 +02:00
Denis Vermylen (dve) f500f6462b [FIX] purchase_requisition: add context to vendor_id
partners for the vendor_id field on purchase.requisition (purchase agreement)
form view was not restricted to vendor partners. Also added default values for
on-the-fly creation.
2016-09-23 10:38:13 +02:00
Olivier Dony 07cbde54d6 [FIX] account_asset: typos in field names (swapped) 2016-09-22 19:50:53 +02:00
Alexis de Lattre 8b1cd80914 [ADD] l10n_fr: add price included sale taxes
Closes #12695
2016-09-22 19:50:53 +02:00
Denis Vermylen (dve) 2e0df7594b [FIX] stock: fix domain if no locations
in _get_domain_locations_new

if no locations the domain gets extended by nothing so we have a domain ending
in '&', '!']. This method gets called by opening the Products app, so it was
possible you couldn't open it due to this error.
2016-09-22 16:15:56 +02:00
Richard Mathot 419f4ac5db [FIX] tools: prevent html_translate crash with malformed HTML
If an user stores malformed HTML code in a *translatable HTML field*,
the ORM won't prevent it (this could be a fix for master as it breaks
existing behaviours) and it could be rendered anyway by browsers.

When reading/prefetching the record, the translation function was
crashing because malformed HTML is obviously malformed XML (the
translation function uses XML internals).

This fix will return the source value as a fallback if the HTML field is
malformed (and thus not translatable) + log the error.
2016-09-22 16:01:03 +02:00
Martin Trigaux 343170a695 [FIX] sale: bad translations for email templates
The source was outdated and the source in the po file did not match the content
of the email template which made duplicated translations when reloading the
terms.
2016-09-22 15:48:41 +02:00
Martin Trigaux 07e531efbf [I18N] export source terms
or at least the first part
many terms are missing which may cause problems when the source in the po file
is different from the source in the xml file (duplicated translation when
reloading)

Add the account_tax_exigible module
2016-09-22 15:42:02 +02:00
Jeremy Kersten 0e7c7a80d8 [IMP] base: set_param log warning if group not found. 2016-09-22 15:03:34 +02:00
Christophe Simonis b1b700adb1 [MERGE] forward port branch saas-11 up to 6854887 2016-09-22 14:23:07 +02:00
qsm-odoo 5a0a29b528 [FIX] web_editor: prevent crash when deleting multiple snippets in one deletion
Since saas-12, when deleting contents, parents are deleted too if they
become empty (while it was not possible to delete contents in that case
before). The problem here was that the history was recorded multiple
times if one deletion made multiple snippets be deleted and this
sometimes could crash.

Now the history is recorded only on first deletion when the user ask
for it.
2016-09-22 13:44:06 +02:00
Christophe Simonis 6854887ade [MERGE] forward port branch saas-10 up to 477482e 2016-09-22 13:41:33 +02:00
Christophe Simonis 477482ed9f [MERGE] forward port branch 9.0 up to 78f6117 2016-09-22 13:05:29 +02:00
Christophe Simonis 78f6117db0 [MERGE] forward port branch saas-6 up to 6a67e5c 2016-09-22 12:52:35 +02:00
Christophe Simonis 6a67e5cf42 [MERGE] forward port branch 8.0 up to e083d72 2016-09-22 12:46:30 +02:00
Raphael Collet 16a0b3b249 [FIX] models: do not delete ir.model.fields in _field_create (#13565)
Following 5c5d0865b9, apparently unused records
are simply deleted after updating existing ones.  This causes an issue when a
module is installed or upgraded.  The inspection of `ir.model.fields` records
is based on a *partial* registry (not all modules loaded); therefore records
will be deleted and recreated afterwards.  This triggers inconsistencies in
other models that refer to `ir.model.fields`, like server actions, base action
rules, mail templates, etc.: many2one fields will be set to null!
2016-09-22 12:29:24 +02:00
Nicolas Martinelli be8bbc2396 [FIX] base: traceback in read_group
An issue originally occurs in the Event module.
- Go to Events >> Reports >> Events
- Add a "Group By" in the search view: "Event Month"
- A mighty traceback pops up

This is because the rows and the columns are grouped by the same field
(`event_date:month`).

In method `_read_group_format_result`, a group_by of type "date" or
"datetime" is replaced by a "(range_start/range_end, label)" tuple. The
first element of the loop on `annotated_groupbys` is handled correctly,
but the next identical element will crash on `value + gb['interval']`,
since `value` is now a tuple and not a date/datetime anymore.

opw-686242
2016-09-22 10:21:10 +02:00
qsm-odoo 9ea6861d7e [FIX] web_editor: allow editing t-field links
There is a hackish feature in the web_editor which forces the
contenteditable to true on links which are clicked and removes it
anywhere else in the page so that only the link is editable after
click. This allows to add text at the end of a link without adding it
outside of the link by mistake.

The feature was badly implemented because, if the link was editable
without having any parent which is editable, the contenteditable was
forced to true, then immediatly forced to false when forcing to false
every page element. This was the case for lots of t-field. By example
the product categories in eCommerce are t-field links which are in non
editable <li/> elements...
2016-09-22 09:41:39 +02:00
Nicolas Lempereur e083d720a9 [FIX] website_blog: blog pager page issue
When we are on the page:

 /blog/myblog-1/page/2

the link to page 3 is:

 /blog/myblog-1/page/3

So we need to give /blog/our-blog-1 as source url of pager.

Previously in this instance, since 4faed0b7 the page 3 url
in this scenario would erroneously be:

 /blog/myblog-1/page/2/page/3

opw-688681
2016-09-22 08:05:20 +02:00
Jeremy Kersten e72b852015 [FIX] website_crm, website_hr_recruitment: remove useless token
This token will be added automatically at posting (by ajax.js from framework)
2016-09-21 21:34:11 +02:00
Wolfgang Taferner 71fd0829ef [FIX] anonymization: intercept exception in case of removed models and fields 2016-09-21 21:34:11 +02:00
Olivier Laurent 5bd0b05c22 [FIX] doc: typo in upgrade_api 2016-09-21 16:27:02 +02:00
Jeremy Kersten 6dc985b0ad [FIX] website_crm_partner_assign: allow partner to be uninteressed for a lead.
Avoid traceback "'int' object has no attribute 'partner_id'"
uid is the id and not the browser record of 'user'

Avoid traceback: Database fetch misses ids (u'<id>') and has extra ids (<id>),
 may be caused by a type incoherence in a previous request.
JS call with id as string.

Avoid traceback: Invalid value res.partner(x,y,z) in domain term ('partner_id', 'in', res.partner(x,y,z))
Search in new api return browseRecord now

Avoid to write on a lead without the right on it.
2016-09-21 16:21:51 +02:00
Christophe Matthieu ab06013e30 [FIX] mass_mailing: can't change color button snippet when edit mass mailing 2016-09-21 16:14:49 +02:00
Thomas Binsfeld (ACSONE) 69a4bf7a43 [IMP] hr: add tree view in Departments action window (#13418)
Tree view was removed to hide the different view types display in enterprise as it was "cleaner" for a dashboard. Re-adding for import button.

Future versions will not display departments as dashboard but employees anyway.
2016-09-21 14:56:38 +02:00
Denis Ledoux 5b4c1d405d [FIX] mrp: fix partner ref and so number in mrp report
These fields are no longer in the model `._columns`
since their migration to the new API.

Courtesy of Daniel Dico
https://github.com/ddico

opw-688768
2016-09-21 13:23:49 +02:00
Denis Ledoux 7233add42b [FIX] point_of_sale: picking creation after payment
Since the below revision:
32b5515a8f

It was no longer possible to create a payment
for a pos order without picking.

Indeed, if `picking_type` is not set,
`picking_id`, which is initialized to `False`,
remains as `False`, and you therefore can't
ask it's `.id` (`picking_id.id`).

opw-687597
2016-09-21 12:23:33 +02:00
Jeremy Kersten 8b41933a9e [FIX] web_graph: force row title to be string
If the title was 'true' or 'false', the export failed, because we are tying to
concat bool and str. TypeError: cannot concatenate 'str' and 'bool' objects

How to reproduce, install sale, be sure to have one order with delivered = True
In Reporting / Sale analysis, add a group by 'shipped' filed to have 'true' as
title.

This commit closes issue odoo/odoo#13425
2016-09-21 10:59:39 +02:00
Stéphane Bidoul (ACSONE) dbd4114d38 [FIX] l10n_lu: fix reconcile flag in accounts template csv
Changes f -> FALSE and t -> TRUE, otherwise when installing the l10n_lu
COA, the reconcile flag is wrong.

Closes #13282
opw-688957
2016-09-20 17:46:13 +02:00
Richard deMeester 4f0ca6d923 [FIX] base: res.config name_get fix (#13513)
name_get function needs to ensure that read passes the required
ids as a list, not a single value.  This is very important if
the method is inherited.
2016-09-20 16:19:46 +02:00
Raphael Collet 5c5d0865b9 [FIX] models: reflect inherited (by _inherits) custom fields
When a custom field is created, it now appears in `ir.model.fields` on the
model's children models (by `_inherits`).  This makes the reflection more
accurate (inherited custom fields are visible), although not perfect (they
appear as "base" fields and thus cannot be overridden).

The reflection of fields in `ir.model.fields` has been improved to deal with
custom field creation, modification and suppression.

Note that custom fields are still not inherited through `_inherit` relations.

opw-687626
opw-645065
2016-09-20 14:08:55 +02:00
Christophe Matthieu 12a6889088 [FIX] website_sale: wrong help menu name to create new product.
Issue: Missing Menu on E-commerce because the user click on the wrong menu
opw-681201
2016-09-20 13:53:57 +02:00
qsm-odoo c4784fc75b [FIX] web_editor: activate autoplay feature for videos
The checkbox was there to activate autoplay... but was not doing
anything since the web_editor/website split.
2016-09-20 13:40:53 +02:00
Jeremy Kersten 6d8ae0a039 [FIX] crm: fix bug introduced by new api in #aa44700
Before migration:
  'phone': customer and customer.phone or lead.phone,
After migration:
  'phone': customer.phone if customer else self.phone,

So if a customer exists and that it has no phone, the phone
on the lead need to be preserved during convertion in opp.
2016-09-20 12:25:45 +02:00
Martin Trigaux f978d85f05 [I18N] l10n_be: add missing translations for CoA 2016-09-19 17:49:58 +02:00
Martin Trigaux 0576b7af19 [FIX] account: translate refund by note de crédit 2016-09-19 17:00:16 +02:00
Martin Trigaux fe0cbf897d [FIX] add missing tag and correct typo
Thanks Transifex reporters
2016-09-19 16:20:30 +02:00
Fabien Meghazi 5dec69c35d [REV] fix ir.qweb#render() return type
This commit reverts the API change introduced in b3302398bc
that changes `ir.qweb#render()` to return a unicode string instead of a utf8
encoded bytestring.

Returning a unicode string is undoubtedly cleaner and a step in the direction
of python 3 but still is an API change that can break third party modules.

Let's wait the migration to python 3 before breaking other people's toys.
2016-09-19 15:22:46 +02:00
Nicolas Martinelli d2707fa7d7 [FIX] pad: initialize pad at creation
When a pad is created programmatically (e.g. through a project task or a
note), the pad is empty when it is first displayed. It is necessary to
edit the record and save it in order to be able to see the content.

This is because the pad is normally initialized by the JS layer, at the
first edition, thanks to a call to `pad_generate_url`. Therefore, a
programmatic pad creation won't initialize it.

opw-685826
2016-09-19 11:41:38 +02:00