Commit Graph
99938 Commits
Author SHA1 Message Date
Nicolas Lempereur 426172bb95 [FIX] project_issue: don't reset partner on project change
If an issue project is changed, depending if the destination project has
a set partner ("Customer") or not:

- if set, the project issue partner will be set accordingly
- otherway the potentially set partner will be conserved

Since 3fe06da if the project had not partner, the partner was unset
which is undesired.
2015-12-11 16:37:38 +01:00
Thibault Delavallée 9ebbceeb65 [FIX] project, issue: stop spamming partners
Commit bb1200adc7 introduced the automatic
addition of cc as followers of tasks and issues. However it seems to
automatically create partners if the address it not recognized. This
does not seem a good idea.
2015-12-11 15:02:14 +01:00
qdp-odoo f6d6762dc7 [FIX] analytic: workaround to re-enable the feature to close an analytic account that has been unfortunately removed by mistake in commit 2a8c077.
It is using an already existing field that wasn't used anymore ('account_type') but as a lot of domains on analytic accounts were
 - wrong (still using old fields state and type that have been removed as well in the same commit),
 - or defined directly in the views
so, an update of some modules may be needed in order to avoid further problems.
2015-12-11 14:57:46 +01:00
qdp-odoo 6e24256e1c [FIX] account_voucher: company_id field of account.voucher has to be a related of the journal's company 2015-12-11 14:57:46 +01:00
qdp-odoo 7feaa205de [FIX] analytic: propagate the context of the related action when opening the analytic chart of account 2015-12-11 14:57:46 +01:00
Géry Debongnie 4e6caf19a2 [FIX] im_livechat: style chat windows in im_livechat
They are hidden in mobile mode, but we don't want to deactivate chat
windows in website livechat.
2015-12-11 14:04:59 +01:00
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
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
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 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
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
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
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
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
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
Martin Trigaux 915e41b19a [FIX] website_mail_channel: number of members in channel
The members of a channel are stored in channel_partner_ids, they are no longer
a follower of the object (message_follower_ids)
2015-12-10 13:48:05 +01:00
Christophe Simonis 6ff9015ae6 [FIX] crm: Leads analysis graph view
there is no longer any graph view with as type "pivot".

Manual forward-port of 74b4f5d2ea which
has been forgotten in previous forward-port.
2015-12-10 12:27:42 +01:00
Cedric Snauwaert 088db58967 [FIX] account: when trying to reconcile an entry, if label is empty, by default it should be the name of the line
It was the case in Saas-6 and prevent many mistakes
2015-12-10 11:54:06 +01:00
Nicolas Martinelli 055f47ef41 [FIX] mrp: wizard
Removes unnecessary separator and newline which prevent the product
quantity to be displayed.

opw-658281
2015-12-10 10:22:36 +01:00
Cedric Snauwaert 12dad00508 [FIX] account: fix problem with round_globally method in tax calculation
When rounding globally, we should not round the tax with the currency rounding since it might introduce some errors.
Also add the field on the company view for user to change the computation method as they want.
2015-12-10 10:10:22 +01:00
Daniel Dico d8e5cdec7d [FIX] fix various Lucida misspellings
closes #9997
2015-12-10 09:55:22 +01:00
Christophe Matthieu 2e074cb305 [FIX] web_editor: don't display translation modal for attribute on tag who have content 2015-12-10 09:10:29 +01:00
Christophe Matthieu 5257721bef [FIX] web_editor: translation feature for all string fields on website
* add the branding in translation mode
* change javascript to add the lang in the context (automatically removed in the rte => allow to create record and edit when use an other default language of en_US)
* avoid double saved
2015-12-10 09:10:29 +01:00
Christophe Matthieu a93bd0fb68 [FIX] website_sale: active text translation for product description
If translate=True AND if sanitize=True (By default sanitize=True) the html field use automatically html_translate method.
2015-12-10 09:10:29 +01:00
Christophe Matthieu e86372c504 [FIX] website_blog: active text translation for blog content
If translate=True AND if sanitize=True (By default sanitize=True) the html field use automatically html_translate method.
2015-12-10 09:10:28 +01:00
Denis Ledoux 3e6f7c1e15 [FIX] calendar: user multiple times in event attendees
When creating a new event,
with just you as attendee,
then edit again the event and add someone else,
the user is twice in the attendee of the event.

This reverts the part done in `calendar.py` of revision 8483ca5

Even when you create an event for a job interview,
this is not mandatory to set yourself as attendee.
You can maybe be added by default, but you cannot
force the user to be set as an attendee of the event.

e.g. An HR officer can schedule a meeting for a job interview,
with the department manager and the job applicant alone, without
himself, thus.

opw-658528
2015-12-09 18:48:41 +01:00
Jeremy Kersten 800ae13712 [FIX] base: override default int converter from werkzeug
Default IntConverter (as well as Float, ...) doesn't support
negative value by default with werkzeug.

http://werkzeug.pocoo.org/docs/0.11/routing/
2015-12-09 17:01:22 +01:00