Commit Graph
103218 Commits
Author SHA1 Message Date
Raphael Collet 780cfba3c6 [FIX] fields: make overriding a property field by a function/computed field work
Contribution by Adrien Peiffer (ACSONE).
2015-10-26 17:25:47 +01:00
qsm-odoo d4b91ccd34 [IMP] base: description pages containers width
Containers inside description pages must be displayed as a
container-fluid since they are inside a box which has a
smaller width than a container.
2015-10-26 17:14:05 +01:00
Raphael Collet 81566103c0 [FIX] res_lang: prevent modification of language code 2015-10-26 16:56:34 +01:00
qsm-odoo b4869a2a4e [IMP] base: description pages containers width
Containers inside description pages must be displayed as a
container-fluid since they are inside a box which has a
smaller width than a container.
2015-10-26 16:51:00 +01:00
Denis Ledoux 30894d15b1 [FIX] im_livechat: livechat managers security rules
These two rules were used to restrict livechat users
to the read access to their own messages,
and allow livechat managers to see all messages.

Since 9.0, livechat messages are no longer
`im.chat.message` records (8.0),
they are now `mail.message` records, and this model
already implements its own security rules.
See `check_access_rule` of `mail.message` to know
more about the access rules of this model.

Therefore, these security rules are no longer necessary in 9.0.

Besides, it had as side-effect to restrict the access of
livechat managers for `mail.message` records.
For instance,
livechat users were no longer able to create customers.

opw-651958
2015-10-26 16:36:34 +01:00
Denis Ledoux cea0a80252 [MERGE] forward port of branch 8.0 up to 90f4749 2015-10-26 15:51:51 +01:00
qsm-odoo fa6e8448d6 [IMP] base: description pages containers width
Containers inside description pages must be displayed as a
container-fluid since they are inside a box which has a
smaller width than a container.
2015-10-26 15:47:10 +01:00
Goffin Simon 2eb8f009b4 [FIX] purchase: action_cancel
Action_cancel must be done on each stock.picking(with state!='cancel') linked to the purchase order
like in the revision 5aeccbd.

opw:652995
2015-10-26 15:42:27 +01:00
Goffin Simon ac53e2451d [FIX] account: reverse_moves
When reversing entries in Journal Entry, each entry(account.move.line)
must be copied with its own 'tax_line_id'. In this way, the action window
"act_account_tax_tax" can find all the entries linked to a specific tax
(active_id) to compute the Tax Report.

opw:652598
2015-10-26 15:35:21 +01:00
Nicolas Lempereur cb23864262 [FIX] web_editor: ie issue with range within undisplayed
In IE11, when adding a range to a selection that can fail if this range
is not displayed (display non on itself or an ancestor) or is not already
inserted in the dom.

e.g: IE fails in the following situation: http://jsfiddle.net/7cmf2tt9/7/

The feature causing this situation is minimal : it only set the cursor
at the end of a FieldTextHtmlSimple widget (the default widget for
fields.Html). This commit thus only ignore that error.

note: this is not an issue on IE Edge.

closes #9216
opw-652347
2015-10-26 15:25:30 +01:00
Nicolas Martinelli 058db89876 [FIX] web: proper update of the dataset
The method evict_record calls _update_cache with an empty dictionary,
which will not replace any cached value. Therefore, the cache is never
cleaned.

opw-652393
2015-10-26 13:03:47 +01:00
Aaron Bohy 1ca0e11393 [IMP] mail: context sensitive mention
The mention mechanism of the chat composer first proposes partners that are
registered to the current channel or followers of the current document, then
users, and finally partners.

Also reduces the mention detection delay to 200ms.
2015-10-26 12:12:22 +01:00
Raphael Collet d5f35bf37d [FIX] res_lang: prevent modification of language code 2015-10-26 12:09:26 +01:00
Christophe Matthieu 148703370a [FIX] web_editor: visible char have the same feature that delete keydown 2015-10-26 11:43:37 +01:00
Christophe Matthieu 971437e8b0 [FIX] web_editor: remove td content on keydown delete with multi td selected 2015-10-26 11:43:37 +01:00
Christophe Matthieu 5451cf518f [FIX] web_editor: don't merge tr when keydown delete on the last row table cell 2015-10-26 11:43:37 +01:00
Christophe Matthieu ed9a410c11 [FIX] web_editor: add image display in width:100% by default 2015-10-26 11:43:37 +01:00
Christophe Matthieu 3959afc5b5 [FIX] web_editor: backspace and enter in table cell don't break or remove td (remove tr but not td alone) 2015-10-26 11:43:36 +01:00
Christophe Matthieu 0be54422c0 [FIX] web_editor: use arrow up/down to switch table cell 2015-10-26 11:43:36 +01:00
Christophe Matthieu a291adb314 [FIX] web_editor: copy-paste content keep architecture
The paste don't keep the architecture, usability team want to past the architecture but remove extra style and wrong node like span.
2015-10-26 11:43:36 +01:00
Christophe Matthieu d7b5eeabeb [IMP] web_editor: move picture options from snippet to summernote bar
Difficulty for the user to understand how to change the images.
Some options summernote being in the bar and the other in the snippets editor.
Need to merge this options.
2015-10-26 11:43:36 +01:00
Christophe Matthieu 0505c45164 [FIX] web_editor: don't display the summernote black picture overlay
Issue: the overlay is confusing for user because summernote the size change is not active (to have a responsive design)
2015-10-26 11:43:36 +01:00
Christophe Matthieu 80a396b9fd [FIX] web_editor: remove useless line 2015-10-26 11:43:36 +01:00
Christophe Matthieu 6fc64aa468 [UPDATE] web: update font-awsome version 4.4.0 2015-10-26 11:43:36 +01:00
Christophe Matthieu 63392cc239 [FIX] web: can use web/image controller for attachment type url
Attachment type url return a status 301 for response
2015-10-26 11:43:36 +01:00
Thibault Delavallée 890f1302c7 [FIX] mail: server action: do not send directly email notifications 2015-10-26 10:54:57 +01:00
Thibault Delavallée 2be1dfc1ed [FIX] hr_holidays: subscription and emails
[FIX] auto subscription

- removed auto subscription of managers for leave / allocation requests as this
  can be managed through subscripion to the department
- updated some subtype labels
- removed auto subscription of leave / allocation creator as the employee is already
  automatically subscribed; managers creating leave and allocation in batch should
  not automatically follow the created records except through the department
  subscription

[FIX] notification email batch

- add a context key to use the email queue for notifications linked
  to allocations created in batch
- also fixed a missing context in a browse
2015-10-26 10:54:20 +01:00
Thibault Delavallée 9b385078b2 [DOC] mail: add some docstrings for mail context keys
Too much keys kills keys. Difficult to say.
2015-10-26 10:54:19 +01:00
Nicolas Martinelli 90f47496e6 [FIX] website_sale_delivery: currency of delivery methods
The currency of the delivery method should match the currency of the
company. Indeed, the price specified in the corresponding product is in
the currrency of the company and does not depend on the pricelist.

opw-652716
2015-10-26 10:32:43 +01:00
Thibault Delavallée a36de1efad [FIX] mail: notification email cleaning
- remove / udpate some paddings. Indeed some part of the notification emails
  are badly aligned.
- postprocess the notification email to remove the content coming from odoo.
  This ensure that action buttons present in some emails are not forwarded to
  other people, notably customers. This is done by adding a div holding the
  whole notification emails, with a summary = o_mail_notification. A summary
  is used instead of a class or id because some html clients (like gmail)
  strip classes, ids, ... summary seems to be kept in several clients.
2015-10-26 10:28:46 +01:00
Goffin Simon b49e52ed04 [IMP] website_quote: Payment provider not set
The fields "payment_acquirer_id" and "payment_tx_id" were not set in the quotation
when selecting a payment method in the online quote.
Inspired from function payment_transaction in addons/website_sale/controllers/main.py

opw:652733
2015-10-26 10:16:40 +01:00
Joren Van Onder 109cfec679 [IMP] hw_proxy: remove the old docs and refer to the new docs
v13 of the POSBox image is vastly different from all the previous
versions. On top of that it contains a lot of new features. Because of
this a lot of the POSBox documentation had to be rewritten. While doing
that, we also decided to move the documentation to
odoo.com/documentation/user instead of keeping it here.
2015-10-26 09:09:37 +01:00
Nicolas Martinelli b40cb12626 [FIX] website_blog: return correct main_object
If the main object is not set, the default object used is 'ir.ui.view'.
One of the consequence is that website SEO metadata will be stored on
'ir.ui.view' instead of the correct model, in this case 'blog.blog'.
This will cause the SEO metadata to be the same for all the blogs.

opw-651898
2015-10-26 08:38:19 +01:00
Odoo Translation Bot e84c01ebc1 [I18N] Update translation terms from Transifex 2015-10-25 02:02:17 +01:00
Odoo Translation Bot 265b789e38 [I18N] Update translation terms from Transifex 2015-10-25 01:34:24 +02:00
Fabien Pinckaers 0dcde79bcd [IMP] spacing on sales team kanban 2015-10-24 18:20:11 +02:00
Denis Ledoux 56ef99d050 [MERGE] forward port of branch saas-6 up to 105b1c0014 2015-10-23 18:31:55 +02:00
Raphael Collet dc729c8611 [FIX] point_of_sale: typo in pos.config.settings (wrong model inheritance)
This fixes an error message preventing a non-system-manager user to edit the
Point of sale settings.
2015-10-23 17:02:25 +02:00
Raphael Collet a468aee518 [FIX] res_config_settings: all users can see "module" fields (possibly readonly)
This fixes an error message preventing a non-system-manager user to edit
settings.
2015-10-23 17:01:56 +02:00
Denis Ledoux 0ea31c272c [FIX] point_of_sale: exclude rescue sessions when getting current session
Rescue sessions have been added with revision
bed409322d

With this feature, this is possible to have multiple
pos sessions opened for a same user, if there are
rescue sessions.

`get_current_session` rely on the fact only one pos session
can be opened per user.

Rescue sessions are now excluded to get the current session, so:
 - at most one session can be found
 - rescue sessions cannot be resumed.

opw-652857
2015-10-23 12:07:17 +02:00
Denis Ledoux 3db7cc4673 [MERGE] forward port of branch 8.0 up to f2bc45f 2015-10-23 11:33:24 +02:00
Denis Ledoux f2bc45f91f [FIX] website: submenu without url
This is not impossible to have a submenu without URL.
The condition to set the menu item as active or not
must therefore take that into account.

opw-652688
2015-10-23 11:11:42 +02:00
Goffin Simon a9ce4ffb22 [FIX] account, purchase, sale: included taxes
Forward port of 503820acb6 from 8.0

opw:652310
2015-10-23 10:39:12 +02:00
Olivier Dony 807e776ac8 [FIX] web: /web/image: conforming HTTP status line
HTTP status lines are required to have both
a status code *and* a "reason phrase".

Some stricter HTTP clients / proxies choke
on status lines without "reason".

Technically, setting `response.status` is supposed
to set both at the same time, so we need to provide
both, or to set `status_code` only and let werkzeug
add the reason.  This patch does the latter.

Fixes #8924
2015-10-22 17:40:33 +02:00
Raphael Collet 6c8e53a087 [FIX] translate: separate html_translate from xml_translate, fix serialization
The serialization gives different results for some elements.  For instance, an
empty element `i` must be serialized as `<i/>` in XML and `<i></i>` in HTML.
It must be done like that, otherwise the world (of web browsers) would break.

Add a test case for `html_translate`.
2015-10-22 16:33:56 +02:00
Nicolas Seinlet 8c4877ff0d [FIX] account_asset: Assets Analysis performance
In a real environment with a big dataset,
the query reponse time decreased from 750s to 6s,
by using a join on the sub-select instead of redoing
the select for each line.

Fixes #8812
Closes #9128
2015-10-22 16:04:19 +02:00
Nicolas Seinlet 5c9897a83f [IMP] stock_account: rework on stock_history view joins
- Replace `LEFT JOIN` by simple `JOIN` for required fields
 - Use `JOIN ... ON (...)` syntax instead of implicit join `A.X = B.Y`
 - Remove of unused column quant_id

Closes #9197
opw-650598
2015-10-22 15:59:54 +02:00
Nicolas Seinlet 29bd622521 [FIX] stock_account: stock history performance
Using BIGINT id instead of Text
 - This doesn't change the behavior, just the variable type,
   while being much more efficient.
Using `UNION ALL` instead of simple `UNION`
 - This doesn't change the behavior either,
   as the ids of each sub select cannot collide

Closes #9197
opw-650598
2015-10-22 15:59:54 +02:00
Martin Trigaux 060a898f9f [FIX] purchase: allow to configure the purchase method
group_no_one is almost no longer accessible (way too technical to ask to modify
the url to end users) while this field is simply more advanced configuration
(functionnal and not technical).

Replace technical feature group by purchase manager.
2015-10-22 15:37:35 +02:00
Géry Debongnie ccddf7072f [IMP] mail: make the interface usable in mobile mode
The sidebar can be make visible by clicking on a button 'Channels' in
the control panel.
2015-10-22 14:43:14 +02:00