Commit Graph
103218 Commits
Author SHA1 Message Date
Géry Debongnie a53bd87585 [FIX] mail: various UI improvements to chat interface
- don't display user name in chat windows
- scroll to the new messages separator if it exists (in client action)
- increase sidebar width
- add correct link href in threads
- hide chat window in mobile mode
- mail: ignore o_mail_redirect or o_channel_redirect, but redirect anyway
2015-12-11 14:04:59 +01:00
Nicolas Martinelli e04b9d5542 [FIX] crm: same salesperson
When a lead is converted into an opportunity and a new partner is
created, the user_id of the partner is not in line with the user_id of
the opportunity.

opw-659028
2015-12-11 14:02:00 +01:00
Denis Ledoux 5cf29dcff2 [FIX] web, website: overrideable images controller
The `binay_image` and `content_disposition` are moved
from the web controller to the `ir.http` model,
to be able to override these methods.

This makes possible to browse the records images as sudo
when the record is published on the website.
e.g. to see the partner images on the website `/partners` page
from the `website_crm_partner_assign` module.

opw-659244
2015-12-11 13:58:49 +01:00
Nicolas Lempereur d81409a23f [FIX] mail: comparing apple and orange adding default_res_id 2015-12-11 13:33:36 +01:00
hip-odoo a859bc3a50 [FIX] anonymization: retrieve ids from correct version
Do not hardcode the version in the search but use the current version of the
server.

Closes #9987, opw 658811
2015-12-11 13:29:38 +01:00
Goffin Simon 47e7f5d9bd [FIX] stock_account, sale_stock: _get_partner_to_invoice
When getting the partner to invoice, the function _get_partner_to_invoice
must check the type of the invoice to create.

opw:658460
2015-12-11 13:13:48 +01:00
Martin Trigaux 44dd7c5077 [FIX] hr_payroll: recursive search of salary rules
.insert() is not possible on a recordset
Generating the payslip details report with at least one payslip category
having a parent, the rendering of the report was crashing.

Closes #9778
2015-12-11 12:48:00 +01:00
Géry Debongnie 79ab4c4c60 [FIX] web: make sure web client uses view_id if provided
when there is a view_id parameter in the url, the web client should
honor that request, instead of using default view
2015-12-11 12:34:38 +01:00
Arthur Maniet 5339665806 [FIX] account: reconciliation widget's 'create writeoff' tax domain
Allow for both sale and purchase taxes since using a sale tax on a writeoff
makes sense in cash basis accounting.
2015-12-11 12:02:34 +01:00
Nicolas Lempereur df638109a3 [FIX] website: min-width of quantity spinner input
The size of the ecommerce cart quantity component (- button, input with
quantity , + button) is by default fixed at a given width, but given
some theme styling the padding of the buttons are so big there is not
even one figure visible in the input.

With this change, the appearance doesn't change for most themes, but for
bootswatch Cosmo and Flatly we go from seeing 0 figure to at least two
figures.

opw-658224
2015-12-11 11:45:12 +01:00
Thibault Delavallée 345f393ac0 [FIX] mail: performance in find_partner_from_email
This is a backport of commit 3d32e99665 done
in 9 and ported to the old API. The purpose is to avoid searching on
the res.partner table with a domain leaf being user_ids != False. Indeed
this search is costly. Use a direct search on the user table instead.
2015-12-11 11:22:40 +01:00
Thibault Delavallée 3f758e2fab [FIX] tools, mail: do not strip name from email_to
When sending a mail.mail with email_to, the processing split the email_to into
a list of addresses. However if the found addresses use the form name <email>
the name if lost in the process. A new email_split_and_format method is introduced
in tools and used to avoid loosing that information.
2015-12-11 11:22:40 +01:00
Thibault Delavallée d4a1eb4435 [FIX] mail, mail_group: recipients of mail groups
Mailing lists (mail.group) should not send specific notification emails.
Indeed there can be a lot of recipients and customizing each email can
take time to compute. This leads to posting a message on a mail.group
being very slow.

It is now possible for a model to customize the notification email
recipients computation. The first use is to ensure that mail.group
encodes recipients using email_to instead of recipients_ids. This way
less processing is performed on notification emails.
2015-12-11 11:22:40 +01:00
Raf Ven a1db9c3ac0 [FIX] l10n_be_invoice_bba: constraint _check_communication
The constraint checks a non-existant field 'Communication'.
Should be 'reference' and 'reference_type'

Closes #9739
2015-12-11 11:10:37 +01:00
andreparames 6b9b2274e5 [FIX] doc: http.route auth=public instead of admin
Removed the `admin` option, since it was removed on 04a5264, and added the
option `public`.

Fixes #9688
2015-12-11 10:52:52 +01:00
Nicolas Martinelli 0ba93ef621 [FIX] mail: trim message and no empty message
Trim message as in Discuss and do not send empty messages
2015-12-11 10:33:27 +01:00
Nicolas Martinelli 149aa2ffc1 [FIX] im_livechat: close window
If the user clicks twice on the 'x', the chat window is closed
2015-12-11 10:33:27 +01:00
Paulius Sladkevičius df0c0c85f1 [FIX] mrp: model used instead recordset
The condition was never verified as prod_obj.type is a field.
Closes #9931
2015-12-11 10:30:51 +01:00
Thibault Delavallée 27fdcdf982 [FIX] mail: correctly compute recipients number
Otherwise all emails are scheduled in the queue.
2015-12-11 10:29:44 +01:00
Thibault Delavallée 135ad9e954 [FIX] mail: odoo link in notification email
Put the whole adresse, to avoid having it prefixed by a domain.
2015-12-11 10:29:40 +01:00
Luis Felipe Mileo 16dbef4a13 [FIX] sale: missing digits precision on sale/th_weight
Make sense as the weight field has the 'Stock Weight' precision in product and
delivery.
Closes #9932
2015-12-11 10:14:23 +01:00
Jeremy Kersten 0f25a8ce1d [FIX] wesbite_sale: recompute taxes when fiscal position is updated
We force to recompute the taxes on all lines when we change the fiscal position.
That was already done in backend, with the onchange.
But @api.contrains allow to do it on each write on fiscal_position_id field.

@api.Depends will not work because it is not a computed field.
2015-12-11 10:09:52 +01:00
Christophe Matthieu 7e2628aeb2 [FIX] web: Can't save a x2m in list editable if contains a m2m_tags with a color field
m2m_tags in list editable view try to get color on validation, the field is invalid because the mutex is pending.
Fix: use internal_set_value (don't re-rendering)

Issue: steps to reproduce:
- Create a new instance, install "sale"
- Create a product "prepayment", service, invoice on ordered qties
- Create aproduct "project phase", service, invoice on delivered qties, manually track delivered qties
- Create a SO with once prepayment, and twice a line with "project phase". ( the name (description) of the lines should be "phase 1" and "phase 2" )
- Create invoice => The prepayment is invoiced
- Go back to the SO, try to change the delivered qties of the first phase to 1
- Save => error, odoo doesn't let you save.
2015-12-11 10:07:02 +01:00
Raphael Collet e4e807d4b3 [FIX] web_kanban: in menu of kanban column, always display "Archive Records"
Do not hide the menu entries when the column is empty, because the column is
not re-rendered after you quick-create records in it.
2015-12-11 10:03:02 +01:00
Jeremy Kersten b5fafb5aeb [FIX] base: fix SignedIntConverter weight
This allow to keep route with an SignedIntConverter with more
priority than a StringConverter.

The default wight is 100, so force the weight to 50 (default intConverter)
was also a fix. But we decide to rewrite the SignedIntConverter based on the
intConverter of WerkZeug.

So now, a controller '/module/<string:xmlid>', will be matched after
'/module/<int:id>". (Same behaviour that before the commit 800ae13712)
2015-12-11 09:58:09 +01:00
Martin Trigaux 6d4e5f7119 [FIX] warning: reference to removed field 2015-12-11 09:57:03 +01:00
Fabrice Henrion 5b00a79bc4 [IMP] pos_discount: reorganize fields order
Group discount related fields
Closes #9944
2015-12-11 09:53:13 +01:00
Yannick Vaucher 08e988f9fa [FIX] base: Remove wrong comment
comment stating date of currency rates
As all rates where moved in demo data

Closes #10017
2015-12-11 09:53:13 +01:00
Joren Van Onder 697739dd64 [FIX] point_of_sale: make tendered amount adhere to currency formatting
Part of the number formatting overhaul done in
5c9b4556e3,
4b003afd0a,
261ccf7c56 and
6e945de681. The only place left where we
didn't correctly format the numbers was in the tendered column on
the payment screen. This fixes that by not directly displaying the
inputbuffer anymore. Instead we pass the payment line amount through
format_currency_no_symbol() and display that instead. We also give a
default amount of 0 to parse_value so it doesn't return false for an
empty string.
2015-12-11 09:45:35 +01:00
Goffin Simon f720e365c5 [FIX] base: guess_mimetype
When receiving an email containing two attachments(.docx, .odt) with the chatter
the icons displayed for the two attachments were the icon of a zip file instead
of the icon of a document file.

ps: the dictionnary "mapping" with the mimetypes and the signatures has been
changed in a tuple of tuples to keep the order of the mimetypes because
all the document files (.docx, .dot) begin by 'PK\x03\x04' and all the
zip files by 'PK'.

opw:658706
2015-12-11 09:27:53 +01:00
Nicolas Martinelli c7b7094248 [IMP] im_livechat: allow to close chat without feedback
opw-658973
2015-12-11 08:39:49 +01:00
Fabien Pinckaers 2f19fdc3c0 [FIX] Misc livechat fixes: bugfix in search view, history accessible, better form view 2015-12-11 02:53:15 +01:00
Fabien Pinckaers 147a4efaea [IMP] Cleaning notes 2015-12-11 02:00:36 +01:00
Olivier Dony 3d32e99665 [FIX] mail.thread: optimize lookup of res.users by email
Searching on res.partners with domain [('user_ids' , '!=', False)]
will currently be translated into a huge "ID IN <...>"  query,
with the IDs of all existing users.
On a database with a lot of users, this can be measured
in seconds (e.g. 3-4 seconds with 500k+ users),
leading to significant delays in email delivery.

Using a direct lookup in res.users is more direct and faster.
2015-12-10 18:43:17 +01:00
Denis Ledoux da563bcf5c [FIX] delivery: Ensure carrier availability iteration after a fail
With a UPS delivery type carrier,
`ups_get_shipping_price_from_so` can return a `ValidationError`,
making the carrier unavailable for this order.
Nevertheless, the iteration checking the availability of the remaining
carriers must be ensured.

opw-657161
2015-12-10 18:28:17 +01:00
Antonio Espinosa d0ccd87e79 [FIX] mass_mailing: Confirmation when sending a mass mailing
When a user clicks on the `Send to all` button in a mass mailing form,
then all emails (sometime thousands) are sent inmediatly.

With this fix, a confirmation dialog appears
and the user is asked to confirm this operation.

This simple fix prevents common human errors.

opw-659117
Closes #9796
2015-12-10 17:41:53 +01:00
Nicolas Lempereur 4432639fb5 [IMP] web_kanban: refresh kanban view after fail
If a kanban tile is moved to another column, in case of failure it
would stay in that column giving the false idea that it somewhat worked.

This commit refresh the kanban view in such an instance.

closes #9837

first half of opw-657863
2015-12-10 17:03:13 +01:00
Nicolas Lempereur 73d5f62acd [IMP] web_calendar: refresh event after fail
If an event is moved at another time, its appearance would only be
refreshed if it was successful. But in this particular instance, the
refresh may even be more useful when the change failed.

part of #9837

second half of:
opw-657863
2015-12-10 17:01:49 +01:00
Denis Ledoux 4bebbfdcf5 [FIX] mail: jinja2 code compatible with wysiwyg for notifications
When editing an email template with the wysiwyg,
the `<` and `>` operators are automatically converted
to `&lt;` and `&gt;`, even for the Jinja2 conditions,
therefore breaking these conditions, and the render
of the email templates.

We avoid to use these operators in the email
template, so users can customize the notification
email template without having an advanced
knowledge on how to edit an email template containing
Jinja2 code.

Besides, the line return at the end of the email template,
just after the `% endif`,
is done on purpose as well: the wysiwyg adds automatically,
at the time of this revision,
`<p></p>` at the end of the email template source, but
this cannot be added on the same line than `% endif`,
otherwise this is considered as Jinja2 code, and it's not.

opw-659113
2015-12-10 16:58:15 +01:00
Nicolas Lempereur 893fbc0553 [FIX] web_editor: keep inline editor line spacing
opw-657955
2015-12-10 15:53:07 +01:00
Stefan Rijnhart b139c5819d [FIX] email_template: allow override of in new API
If context is passed as a non-keyword argument to a new-API override of this
method, it ends up as the positional fields argument.

Closes #9911
2015-12-10 15:28:21 +01:00
Xavier Morel 87090c1b8b [FIX] event header date on website
t-field expects a UTC datetime which it then localizes to the current
viewer's timezone (using context tz from the browser), but goal here was
to display the event's own local time, so t-field was provided an
already localized datetime and would parse it as UTC then re-offset it
based on the user's timezone, resulting in a completely nonsensical
displayed datetime.

Just display the localized datetime without reprocessing it (save to
slice off the seconds count)
2015-12-10 15:25:02 +01:00
Christophe Matthieu 3c64ee45a1 [FIX] web_editor: enter in a p tag empty (when user change with code view) can be raise an exception 2015-12-10 15:17:44 +01:00
Christophe Matthieu 6cc99df83e [FIX] web_editor: error when paste without any content in clipboard 2015-12-10 15:17:44 +01:00
Christophe Matthieu b72a3b67f8 [FIX] web_editor: remove exceed span on paste html content 2015-12-10 15:17:44 +01:00
Goffin Simon b00d070b51 [FIX] sale: delivred qty in SO line not updated
When making a account.analytic.line(aal) which matches with a SO line with
a product set with invoice_policy != 'cost' then these aal have to be linked
to this SO line.

opw:658821
2015-12-10 14:54:59 +01:00
Martin Trigaux 5b2e7943cc [I18N] mail: export source terms
To reflect all the recent changes in mail module
2015-12-10 14:48:25 +01:00
Jonathan Nemry (ACSONE) 43482d2d1e [FIX] mass_mailing: translatable unsubscribe link
Display the unsubscribe link in the language of the user

Closes #9995, opw 659075
2015-12-10 14:30:18 +01:00
Christophe Matthieu 267ab22d00 [FIX] website_sale: variable reference
'message' variable was not always defined.
Set a default value.
Closes #10006
2015-12-10 14:17:03 +01:00
Sébastien Maillard feef50adae [CLA] Corporate CLA for Elico Corporation
Closes #10010
2015-12-10 13:58:29 +01:00