Commit Graph
99161 Commits
Author SHA1 Message Date
Nicolas Martinelli 9c77e29d4c [FIX] account: make currency visible
It is impossible to post a manual journal entry when an amount currency
is filled in since the currency must be specified.

opw-652890
2015-10-27 13:09:01 +01:00
Goffin Simon fa85b0f075 [FIX] sale_mrp: get_parent_move
The function get_parent_move is waiting a stock.move record not an id.

opw:653105
2015-10-27 12:34:48 +01:00
Olivier Dony 76593cd081 [FIX] base: ir.model.data: safer tests for index creation
Complements b99ef3b125.
The index definitions have changed, so we need distinct names
and existence tests to make sure they get properly created/altered
on older databases.
2015-10-27 11:06:58 +01:00
qdp-odoo ea12117f65 [IMP] account: auto-install 'l10n_uk' for country code 'GB'. Auto install 'l10n_generic_coa' if there is no dedicated localization found for the country code 2015-10-27 10:44:50 +01:00
Denis Ledoux 6c8a844585 [FIX] account: partner read access in multi-companies
The below revision:
275234c067

Makes the multi-companies record rule disabled by default,
meaning the user can see contacts from other company than
his current company.

Nevertheless, to read the computed field `currency_id` on
the `res.partner` model, the user need the read access
on the contact `company_id` field, that the user does not have
if the partner company is not a child of the user current company.

opw-653103
2015-10-27 10:42:39 +01:00
Nicolas Martinelli f2f3149838 [FIX] website_sale: promo code removal
It was impossible to remove a promo code. Some cleaning done as well.
2015-10-27 09:59:23 +01:00
Nicolas Martinelli 3371e65b08 [FIX] website_sale: taxes when creating SO line
The taxes were not computed when the SO line was created.
2015-10-27 09:59:23 +01:00
Nicolas Martinelli 7b41e39fa7 [FIX] website_sale: Price units corresponding to pricelist
The method _webiste_product_id_change now properly browses the product
as it is done in the method product_id_change of the sale module. Prices
are now updated according to the pricelist.
2015-10-27 09:59:23 +01:00
qdp-odoo 098fc9f1e8 [FIX] purchase: fixed wrong portage to new API. Fixes #9252 2015-10-27 09:50:16 +01:00
Christophe Matthieu 07ce3cd4d1 [FIX] web: error on change value in o2m after an other field onchange if the o2m contains o2m
o2m editable list open a form view and can put command as default value (record[this.name] for o2m in a o2m) for the editable fields.
When the onchange is triggered, get_value create a wrong command of command.

step to reproduce issue:
* edit a quotation with at least on sale order line
* change the pricelist
* change the quantity of the sale order line

todo : remove _on_load_record in version > 9.0 and use new dataset implementation with to_delete attribute
2015-10-26 19:27:34 +01:00
Denis Ledoux 34e90a44f8 [MERGE] forward port of branch saas-6 up to 20dba161d0 2015-10-26 19:17:21 +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
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
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
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
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
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
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
Géry Debongnie e2dc7b27ee [IMP] mail: add link to origin channel from message 2015-10-22 14:43:14 +02:00
Aaron Bohy 1dbeac3e5a [IMP] mail: mention starts detecting from @ 2015-10-22 14:43:14 +02:00
Géry Debongnie 2a80f0a850 [FIX] mail,crm: fix automatic notification emails
They need to have the message_type 'email' instead of 'notification', so
they can be starred in the interface.
2015-10-22 14:43:14 +02:00
Aaron Bohy cfc18172a5 [IMP] mail: composer: use textarea in client action
... allowing multi-line edition, like in the chatter.

Shortcuts:
	- in the client action: ENTER sends, SHIFT+ENTER goes to newline
	- in the chatter: SHIFT+ENTER sends, ENTER goes to newline

Don't use autosize anymore to resize the textarea according to its content as
it didn't fit well within the flex layout of the client action ('height: auto'
didn't increase the height of the flex-item with 'flex-grow: 0'). We perform
the resizing ourselves instead.
2015-10-22 14:43:13 +02:00
Géry Debongnie 4d54a8c0ff [IMP] mail: various ui improvements
including:
- reset scroll position to bottom when leaving channel
- allow clicking on the avatar image
- hide stars when message is of type notification
- sort channel names
- add # before channel names
- rename Whole company channel in general
- replace \n and \r in messages by <br/>
- lighten the hover color of sidebar items in the client action
- Display @ before mentions
2015-10-22 14:43:13 +02:00