Commit Graph
106584 Commits
Author SHA1 Message Date
Simon Lejeune e433625cfb [FIX] qweb: render of a primary view
Revisions [1] and [2] broke the rendering of extensions-primary view
because it made the wrong assumption that the `read_template` of an
extension-primary view set the `t-name` attribute to the name of the
extension-primary view.

We now patch the `t-name` in the `read_template` result for this case.
[1] 12e36a66f2
[2] 9dd5bd9349
2016-12-08 11:49:06 +01:00
Raphael Collet b62d078c9d [FIX] models: identify sparse fields with field.sparse 2016-12-08 11:08:01 +01:00
Nicolas Martinelli 41c43cdd37 [FIX] mrp: hide Gantt view
The Gantt view should not be displayed for MO, only for WO.
2016-12-08 10:53:11 +01:00
Géry Debongnie 44c1fa7138 [FIX] web: prevent crash in line chart with 1 record
Since commit 8625242884, the graph view crashed when
displaying a line chart with only one record.  The reason is that the
method display_line can return undefined (if no line chart can be
displayed).  In that case, there is no reasy to try to display its
tooltip.

This commit simply protect against the case where it is undefined.
2016-12-08 10:11:24 +01:00
Nicolas Martinelli 2ab85a0783 [FIX] hr_payroll: hidden lines
The domain on the "Payslip Lines" has several consequences:
- Lines are duplicated every time the user clicks on "Compute Sheet"
- Contribution registers that have data are not computed because they
  are not visible
- Hidden payslip lines don't go onto accounting entry

We remove the domain, since the purpose of it is to hide the lines in
the payslip of the employee, not hide them in the backend.

Closes #13926
Fixes #13925
Fixes #13987
opw-694011
2016-12-08 09:07:53 +01:00
Lucas Perais (lpe) 85160f8da2 [FIX] hr_holidays: This commit corrects the behavior of holidays validation
When allocating holidays to an empty tag (or category), double validation doesn't crash anymore, though it does nothing

Closes #14591
OPW #694748
2016-12-08 08:50:27 +01:00
Alexis de Lattre 6665526ccc [IMP] l10n_fr: add some more accounts as well as a model to be used in the bank reconciliation widget. Courtesy of Alexis de Lattre <alexis.delattre@akretion.com> 2016-12-07 16:50:06 +01:00
Nicolas Martinelli e3ee78c7ef [FIX] mrp: start date
The start date of a manufacturing order is never set. One consequence is
that the Gantt view, which relies on this field, is never populated.

opw-693743
2016-12-07 15:50:31 +01:00
Jeremy Kersten 89994fbb88 [FIX[ website_crm_partner_assign: fix mail template
If user had no signature, False was displayed in the mail.
2016-12-07 14:53:42 +01:00
Olivier Dony daff406a22 [FIX] crm: re-introduce fix of b46b0936a8
The new API migration in aa44700dcc
discarded the b46b0936a8 patch,
reintroducing the bug.
2016-12-07 13:00:34 +01:00
Jeremy Kersten 09b3a50cc8 [FIX] website_crm_partner_assign: don't send email to responsible sale.
Only the partner assigned should receive this email.
The saleman will see the lead in the pipe directly.
2016-12-07 11:08:40 +01:00
Jeremy Kersten 2b243e3650 [IMP] mail: allow to pass ´mail_auto_subscribe_no_notify´ in context to avoid spam
When you write on user_id in a model, that will automatically send an email
to the new user_id assigned.

In case where it is write in batch, that can be considered as spam.

In some case, the user will be aware from another way that with this email.
2016-12-07 11:08:31 +01:00
Nicolas Lempereur b51d21c5b8 [FIX] tools: nbsp+sanitize = write
lxml.html.clean module we are using to sanitize html takes either a
tree/element or string, and return us an element of the same type.

We are passing it an unicode string, and it gives us back an unicode
string and if it is possible convert entities to utf-8.

This lead to an issue in html inline fields containing an `&nbsp;`
entity, the entity was converted by the sanitizer to its unicode
character (U+00A0).

Then, when the field value is loaded to be displayed, the internal
value contains U+00A0 characters, but when it is inserted in the page
the browser converts them to `&nbsp;`. Hence in this instance, the
internal value is never equal to the displayed value and a write is
always triggered even without editing.

This commit simple modify the sanitizer so value saved in database
contain `&nbsp;`.

closes #14569
opw-689274
2016-12-06 18:54:46 +01:00
Christophe Simonis aec8e2582f [MERGE] forward port branch saas-11 up to 345755e 2016-12-06 17:24:37 +01:00
Christophe Simonis 345755e271 [MERGE] forward port branch 9.0 up to 799f12c 2016-12-06 16:49:12 +01:00
qdp-odoo 3fc879e3eb [REF] account: improve inheritancy of default_get values of WizardMultiChartsAccounts class.
This will allow localization to define more easily extra bank or cash journals
2016-12-06 16:13:17 +01:00
Juan Pablo Arias 799f12c326 [ADD] base: Colombian data
- adds position before to COP currency in res_currency_data
- adds address_format to Colombia in res_country_data
- CLA signature for kurkop

Closes #10618
2016-12-06 15:55:43 +01:00
Christophe Simonis 5301951931 [MERGE] forward port branch 9.0 up to 1f3f155 2016-12-06 15:18:45 +01:00
Thibault Delavallée db72451607 [FIX] mail: avoid notifying a message by email when it is already an email
When creating a mail.mail without giving a mail_message_id, a new mail.message
is created. It does then through _notify that notifies people of the message
creation. This leads to mail being sent two times, one when sending the
mail.mail, one when sending the notification.

This commits fixes that behavior. When creating directly a mail.mail without
giving a mail.message, call to _notify is bypassed. This way either an email
is created, either a message that has to be notified is created, but not both.
2016-12-06 15:15:48 +01:00
Thibault Delavallée df037e2959 [FIX] mail: correctly handle replies to thread containing external emails
When Odoo sends emails their Message-Ids are either generated by Odoo or
use the original Message-Id in the case of an incoming email going through
the mail gateway.

When the mailgateway handles replies to those emails it checks their
References or In-Reply-To in order to find matching Message-Ids and find
the reply's parent. Currently it is limited to Message-Ids matching the Odoo
pattern. However if an external email began a discussion thread, references
will not hold any odoo-like pattern.

Previously to commit 0028c42136 this was hidden due to a bug when
managing private messages. This code was also managing replies to external
emails due to a probably undesired side effect.

Correct way of checking if an incoming email is a reply to a thread is to
check that References or In-Reply-To Message-Ids match some stored Message-Ids
of mail.message. They don't have to match Odoo patterN
2016-12-06 15:15:48 +01:00
Thibault Delavallée 588b6020a6 [CLEAN] mail: remove unused import 2016-12-06 15:15:48 +01:00
Darshaka Pathirana ecc6733cee [FIX] doc: remove remaining references to 9.0
Closes #14608
2016-12-06 14:58:55 +01:00
Darshaka Pathirana b3a0622b52 [CLA] signature for jkirk
cf #14608
2016-12-06 14:58:54 +01:00
Goffin Simon 45284a3f03 [FIX] sale: action_view_invoice
When clicking on button "invoices" in a SO, the invoice linked
was opened without the action in url. So when refreshing the browser,
a supplier invoice was displayed instaed of a customer invoice.

opw:695844
2016-12-06 14:56:19 +01:00
Nicolas Martinelli 9dc9a058cd [FIX] account_asset: modify asset
- Create a new assets
- Set a any gross value, any number of depreciation, and any number of
  months in period
- Set "Prorata temporis" to True!
- Save, then confirm the asset
- Post at least one of the line by clicking on the red bubble next to it
- Click on "Modify Depreciation" and choose another number of month
- Click on "modify" to confirm the modifications

The depreciation of the latest posted month is duplicated. However, the
first unposted depreciation should be the first period after the last
posted period, as it is the case for non prorata temporis assets.

opw-693081
2016-12-06 14:10:14 +01:00
Atchuthan a55a83cb61 [FIX] report: add fontawesome to print icons in report
Fontawesome icons were available in v9.0, but not in v10.0 following
refactoring.

Closes #14433
opw-694666
2016-12-06 13:24:49 +01:00
Nicolas Martinelli b67871d5c7 [FIX] account: account domain in reconciliation
In the reconciliation widget, create a counterpart line. No domain is
applied on the "Account" field regarding the company, meaning that we
can select an account from any company.

opw-694149
2016-12-06 12:41:06 +01:00
Martin Trigaux 1f3f155a05 [FIX] mail: pass the missing context
session.context no longer exists, it is session.user_context

Add the missing context in the message_fetch call. The dates in the chatter were
not formatted according the user locale.
2016-12-06 11:50:36 +01:00
Martin Trigaux 91139b483a [FIX] mail: untranslated message subtypes
The tacked messages in the chatter were parially translated.
e.g. "Lead created"
The call did not gave the user context and the subtype message was not
translated.

Closes #14589
2016-12-06 11:45:08 +01:00
Nicolas Martinelli 34981f5ad4 [FIX] project_issue_sheet: copy issue
- Create a project which handles Tasks and Issues
- Create an issue
- Book some timesheet on the issue, thanks to the tab "Timesheet"
- Go to the Timesheet application, you'll see that the time booked
  appears in the grid
- Change the time spent from the grid view.

The time added is booked on the issue, while the user doesn't expect it.

This is because the modification of a timesheet line copies an existing
line, then change the necessary values (see method `adjust_grid`).

Ideally, we should have a link module between timesheet grid and project
issue. Another solution would be some hack in the `timesheet_grid`
module to prevent `issue_id` to be copied. However, there is little to
no use of copying a timesheet line in general, so the solution chosen
should not affect the existing processes.

opw-697018
2016-12-06 11:07:25 +01:00
qdp-odoo a20d1e9256 [FIX] account: do not create the 'undistributed profits/losses' account if it is already given in the CoA 2016-12-06 10:22:00 +01:00
Balázs Palcsó 09fdda0c7a [ADD] l10n_hu: add a missing Hungarian account tax template entry
Closes #14582
2016-12-05 17:47:35 +01:00
Balázs Palcsó fa66aad703 [CLA] signature for balapal
cf #14582
2016-12-05 17:47:35 +01:00
Yannick Vaucher 97f95de89c [FIX] website_membership: wrong list of membership line for google map
Variable `membership_line_ids` was misspelled `membership_lines_ids`
Thus the list of partner returned has extra partners not filtered by search domain

Closes #13768
2016-12-05 16:58:10 +01:00
Nicolas Lempereur 83956d4c49 [IMP] mail: keep multiple spaces in chatter and chat
In chat window, a chatter and discuss, the text zone appear as a pure
text zone but is transformed later on in HTML to add mentions links and
possibly other features.

Thus, when we wrote multiple spaces or a space at the next to html tag,
with how html worked they were collpased into one (or zero).

To keep them, we need to wrap the content with `<pre />` tag or replace
spaces with `&nbsp;`.

closes #14593
opw-695535
2016-12-05 16:53:04 +01:00
Nicolas Martinelli 3ea207b5c3 [FIX] mrp: potential traceback
- Create a MO for 500 Units
- Produce 500 Units
- In the "Finished Products" tab, change the produced quantity to 450

At that point, the button "Mark As Done" doesn't appear anymore.
Therefore, we need to change the "Quantity To Produce" to 450 => This
causes a traceback because of a division by zero.

Fixes #14499
opw-695269
2016-12-05 16:50:37 +01:00
Eric Antones d6b26f1d62 [FIX] base: Catalan separator format and thousands separator
* The thousands separator does not appear by default in Catalan language. Using
it is the usual practice

Closes #14123
2016-12-05 16:43:14 +01:00
Alexis de Lattre ef8116628b [FIX] base: display the value of ir.property
For the records with type='selection' (example: "Cost Method Property")

Closes #14413
2016-12-05 16:33:56 +01:00
Osval Reyes 5a4c548ab1 [REF] base: update peruvian currency symbol
- Currency symbol position is set before the amount, not after
- Since last month 2015 (see https://es.wikipedia.org/wiki/Sol_(moneda_del_Per%C3%BA) )
the currency passed from S/. to S/ (without the dot)

Closes #14370
2016-12-05 16:26:55 +01:00
Osval Reyes e4d1155d6f [CLA] include osvalr as a member of Vauxoo
cf #14370
2016-12-05 16:26:54 +01:00
Sebastián Ramírez f378a31564 [FIX] project: raise validation error
The ValidationError in Task._check_dates was returned instead of raised
Closes #14393
2016-12-05 16:20:59 +01:00
Goffin Simon e48d4bb85f [FIX] account: tax_ids in function prepareCreatedMoveLinesForPersisting
For the field "tax_ids", a command must be written in the the returned dictionary.
In this way, the ids of the tax will be set on the account move line.

opw:689806
2016-12-05 15:57:40 +01:00
Goffin Simon 14e5b7fcb6 [FIX] portal_stock: access rights
When clicking on the delivery order linked to the SO with a portal user,
a access right error was raised.

1. Due to this record rule: res_partner: portal/public: read access on my commercial
The portal user cannot read the fields of the partner linked to the warehouse of the picking.
The unreadable fields were in external_layout_footer.

2. The portal user is not allowed to read the field barcode on a product.

opw:693238
2016-12-05 15:52:48 +01:00
Nicola Malcontenti 734ed038a6 [FIX] website_sale: align total under the right column
Closes #14478
2016-12-05 14:05:11 +01:00
Nicola Malcontenti ffdc7a1870 [CLA] add signature for hurrinico
Closes #14477
2016-12-05 13:57:08 +01:00
Martin Trigaux e8a925810a [FIX] point_of_sale: correct remaining screen_selector calls
Deprecated in 9.0, to replace with gui.show_popup
Was crashing when displaying an error
opw-695106
2016-12-05 12:25:02 +01:00
Michael Martinides c4c60fa4d0 [FIX] doc: typo 2016-12-05 11:07:41 +01:00
Michael Martinides 96bcebb3a1 [CLA] adds ICLA for msmart
Closes #13528
2016-12-05 11:07:41 +01:00
Lucas Perais (lpe) 1f795a2d5a [FIX] hr_holidays: notifications: This commit corrects the behavior of notifications.
The actions on notifications are appended to an empty list

[FIX] hr_holidays: appending actions on notifications

Closes #14565
Related to ticket 695738
2016-12-05 10:25:16 +01:00
Andrea Stirpe b431e18226 [FIX] l10n_nl: adjust sequence to handle default taxes
Default sale tax should be Verkopen/omzet hoog
Default purchase tax should be BTW te vorderen hoog (inkopen)

Closes #14174
Fixes #14166
2016-12-05 09:21:36 +01:00