Commit Graph
103231 Commits
Author SHA1 Message Date
Géry Debongnie 6a5dadd291 [FIX] mail: sometimes the chatter displays no messages
It is due to the fact that the thread was not rendered in the dom before
the render_value method was called
2015-11-12 08:51:56 +01:00
Géry Debongnie bac5a19451 [FIX] mail: various small UI tweaks/fixes
- put the mentionned partners and the attachment above the composer
  instead of below
- debounce some links in thread.js to prevent double loading views when
  double-clicking
- readd the # in front of the channelname of the title of the client action
- give the channel_id to the thread in a chat window, so it does not
  display the channel name everytime it displays a message
- correctly close dm chat window when the dm channel is closed in the
  main sidebar
- simplify the help messages when a channel is empty
2015-11-12 08:51:56 +01:00
Aaron Bohy 5264ccf0d0 [IMP] mail: needactions and messages read
Mainly concern the client action:
	- Display needactions per channels
	- For all channels except Inbox, clear needactions when opening the channel
	- Add snackbar to undo needactions clearing
	- Display a separator between read and unread messages in threads
	- Fix active channel (for Inbox and Starred) display in sidebar

Various minor changes in chat_manager:
	- Code refactoring of bus notification handler
	- get_channel() don't fallback anymore on first channel
2015-11-12 08:51:56 +01:00
Aaron Bohy dbc1061854 [FIX] mail: load more messages: correct search domain
The problem was that the load more feature didn't return directly preceeding
messages in the thread but rather older messages.
2015-11-12 08:51:56 +01:00
Josse Colpaert a0b8829798 [FIX] stock: when moving lots it should also take into account pack operation info
When moving lots, we should also take into account the information on the
pack operation: specific location, package to take it from and owner.

Also, in the get_preferred_domain for the pack operations, when not giving any pack,
we should check the quant is not in a pack.  It is also better to copy the list
to avoid that the constraints added to the list would get into the next call.
2015-11-10 17:08:46 +01:00
Nicolas Martinelli a4194005be [FIX] stock: unreserve quants before assignment
Make sure to unreserve all quants before assignment. Indeed, the method
makes this assumption and does not take into account any existing
reserved quants. Therefore, without this fix, there is a possibility to
reserve more than needed.

opw-653904
2015-11-10 17:08:46 +01:00
Nicolas Martinelli 43e8e92c81 [FIX] account_asset: remove onchange
Changing the asset account should not change the depreciation account,
since they will be most likely different.

opw-654335
2015-11-10 15:18:24 +01:00
Nicolas Martinelli 8064cba8e5 [FIX] website_sale: display sale note
The method get_salenote does not exist anymore. It is not necessary
anymore since the note is already translated in the appropriate language
on the SO.

opw-653600
2015-11-10 15:04:28 +01:00
Simon Lejeune 038949f395 [REF] packaging: debian: don't require ofxparse
because it's available in debian stable but not in ubuntu 14.04 (lts)
2015-11-10 14:43:41 +01:00
Joren Van Onder fc21b00144 [FIX] pos_mercury: make forcing validation work again
The POS will asks the user to confirm certain things that could be a
user error. Examples of this are attempting to validate an order with a
very big payment compared to the amount to pay on the order. Another
example is paying an amount of 0 for an order with a total amount to pay
that is negative (manual refund).

The issue was that pos_mercury overwrote validate_order(), and didn't
call _super() correctly, losing the user confirmation for these type of
actions.
2015-11-10 12:50:51 +01:00
Olivier Dony aae980b458 [FIX] auth_signup: initial invitation link should not expire 2015-11-10 10:35:41 +01:00
Nicolas Lempereur 8bb5b867db [FIX] base: remove ir.actions.wizard from ir_ui_menu action
ir.actions.wizard were removed in 8.0 with a32bf72 (oct. 2013), but
they were still present in the interface to add a menu.

This fix removes them for good, and is only done in 9.0 since the
remains of existing ir.ui.menu with an ir.actions.wizard action should
be minimal.

opw-654215
2015-11-10 10:26:14 +01:00
Géry Debongnie 622bd038e4 [FIX] mail: various ui improvements
- display star/mark as read icon next to the message title instead on
  the far right
- display unstar all message in channel starred
- enable/disable the 'unstar all' and 'mark read' buttons depending on
  the number of messages in the corresponding channels
- display star on the left sidebar in 'squashed messages'
- tweaks to padding in client action
- display hash in channel name in lighter tone
- light opacity in sidebar
- star icon in message sidebar is clickable + small less refactoring
- message sidebar is aligned with the message now
- messages are not squashed in inbox/starred
2015-11-09 16:36:52 +01:00
Géry Debongnie 2bb55ecb04 [FIX] mail: issue when leaving channel and refreshing
When we refresh, the bus will send the last notifications since the last
50s, so, the browser will receive notifications from a channel that we
already left.  This commits tries to fix the issue by sending
explicitely the information that a channel was unsubscribed.

Also, and this is touchy, it ignores messages received in a channel that
it is not subscribed to (before, it joined the channel)

Also, it will synchronize channels opened and closed in various
tabs/browsers.
2015-11-09 16:36:29 +01:00
Géry Debongnie fb013ce292 [FIX] mail: prevent race condition in client action
The issue was that the chat_manager was an async js module, so it could
be loaded quite late.  Then the client action was loaded only after the
chat_manager was ready, and possibly before the action_manager read the
value in the action registry.

This commits prevent this problem from happening by turning the chat
manager into a sync module, so the chatter and the client action needs
to wait for him to be ready before doing their magic.
2015-11-09 16:28:06 +01:00
Géry Debongnie 9f6f5fe512 [FIX] bus: allow bus to self-correct
The bus is somewhat tricky. (at least, the crosstab version).  It needs
to elect a leader, and to communicate with the server through it.

However, several tabs have a different event loop, so, we need to be
careful to avoid race conditions.  The current version was not
race-condition-proof, and this commits improves on this.

The idea is to allow the bus to detect if some other tab is also
considering himself master.  In that case, it is allowed to unelect
himself.

This should allow the bus to self correct those situations in a short
time.
2015-11-09 16:24:59 +01:00
Nicolas Martinelli 1e64c660f5 [IMP] crm, website_customer, base : tag names
Rename "Tags" with more explicit names.

opw-653084
2015-11-09 15:33:54 +01:00
Nicolas Lempereur f847701c5a [FIX] website_sale: attribute conflict with m2m tags color
The color field of a product.attribute.value enable users to choose a
color with its HTML color value (hexa, named, rgb, rgba).

In the many2many tags the color field on the model has a magic feature
which color the tag in several instances. But these color are numbered
from 0 to 10 and are incompatible with HTML color values.

So with with the model product.attribute.value, the many2many tags
widget would use the color system (since a field name color exists), and
when setting a color with it, it would be invalid and erase the wanted
named or HTML value color.

This fix ignore the setting of the tag color for this particular model,
a following fix (in master) should rename the column to properly fix
this.

opw-653124
2015-11-09 15:14:44 +01:00
Martin Trigaux 345809b993 [I18N] Update french translation terms from Transifex
Mostly to fix the '%.' in mail breaking the rendering of Odoo in French
2015-11-09 14:58:50 +01:00
Nicolas Martinelli d2247b7e66 [IMP] purchase: do not propose same PO if already added
When adding a PO to a vendor bill, a PO is proposed only if at least one
of its line is not already added.

opw-653911
2015-11-09 12:16:53 +01:00
Nicolas Mac Rouillon a69205d561 [CLA] Adding one contributor to adhoc cla 2015-11-03 17:41:40 +01:00
Adrien Peiffer (ACSONE) 2ae37d7c9a [FIX] hr_contract: access on resource.calendar.attendance for HR officer
Add ACL on resource.calendar.attendance for HR Officer
according access right on resource.calendar

Otherwise, this isn't possible for HR officers to
manage Work Details (`resource.calendar.attendance`),
while they can manage Resource Calendar (`resource.calendar`)

Closes #9330
2015-11-03 17:04:22 +01:00
Goffin Simon e45ade1979 [FIX] website_sale: add to cart with optional products
When clicking on button "add_to_cart" for a product with several options,
the user must be redirected to the product page. In this way, the user can
choose the options, he wants to buy with the product before adding the product
in the cart.

opw:653356
2015-11-03 16:27:20 +01:00
Aaron Bohy 388f7a7db9 [IMP] mail: composer: mention channels feature
Generalizes the mention mechanism to allow mentionning partners (@) and
channels (#).

When a user clicks on a mentionned channel, it subscribes to it and joins it.
If the mention is in a chatter, the user is redirected to the Discuss client
action.

Moves the RPCs to get the menu and action id of the Discuss client action from
systray.js to chat_managaer.js as they are now needed in the chatter as well.

Also fixes the on_channel_clicked redirection for notification message
(created/joined/left #channel). Those three messages are now of type
notification, and correctly redirect on click.
2015-11-03 16:19:35 +01:00
Aaron Bohy b61c0d2499 [FIX] web: action manager: options of client actions
The options dictionnary given when performing a do_action is now transmitted
to the client action initialization.

This was required for the mail client action, to correctly redirect to a given
channel.
2015-11-03 16:19:35 +01:00
Aaron Bohy 76c71e63e7 [IMP] mail: client action: control panel buttons
Extract all buttons from 'Action' dropdown
2015-11-03 16:19:35 +01:00
Géry Debongnie f99231a8f4 [IMP] mail: various ui improvements
- display hash before text in create channel input
- increase limit for message fetching from 20 to 100
- 'Show more messages' renamed ino 'Show older messages'
- remove border top and bottom on selected messages
2015-11-03 16:19:35 +01:00
Nicolas Lempereur 0a0df28fd9 [IMP] website: add special char to rte_translator tour
To test the the use case solved with f5acea7.
2015-11-03 16:00:46 +01:00
Raphael Collet ee46560004 [IMP] translate: test xml_translate with sample translations
The received value of a translation has to be escaped client side.

note: testing the use case solved with f5acea7
2015-11-03 15:44:03 +01:00
Denis Ledoux b12aa82926 [FIX] website_mail_group: Localized messages dates
The messages dates in the groups pages
 - /groups/<model('mail.group'):group>/
 - /groups/<model('mail.group'):group>/<model('mail.message):message/

Did not take into account the user timezone, and always displayed
the date in UTC time.

opw-653508
2015-11-03 14:08:15 +01:00
Nicolas Lempereur f5acea7f9c [FIX] web_editor: escape for xml in translation as done in ir.ui.view
Currently server side there is two differents source for html content
displayed on a qweb rendered page:

1) ir.ui.view arch value

are stored as xml and are unescaped before being displayed, so we have
to escape the text nodes before saving.

e.g:

* &nbsp; should be stored as &amp;nbsp; since it is an HTML entity but
  not a defined XML entity,
* &amp; should be stored as &amp;amp; since when unescaping it, it
  would become & which is invalid in HTML,
* &lt; should be stored as &amp;lt; since when unescaping it, it would
  become `<` so HTML text node could become HTML element node.

The tag themselves can also be escaped but it often has the same result:
&lt;em&;gt;blah&lt;/em&gt; is the same as <em>blah</em> when unescaping
is applied to both.

But it is required is some instance, e.g <!DOCTYPE html> unescaped would
be invalid xml.

2) openerp.fields.Html value

are stored directly in HTML formatting and should, conversely, not be
escaped before being stored.

Thus when saving an ir.ui.view part modified thanks to the website
editor, an escaping of text node content is carried out to take this
into account, but the same was currently not done for the v9.0 new
translation system.

This commit apply the same logic when saving ir.ui.view as when saving
ir.translation values.
2015-11-03 13:35:19 +01:00
Christophe Simonis 0a07be8190 [MERGE] forward port of branch 9.0 up to 87a8896 2015-11-03 13:14:23 +01:00
Christophe Simonis 87a889669d [MERGE] forward port of branch saas-6 up to b34a62a 2015-11-03 13:06:42 +01:00
Christophe Simonis b34a62a3e8 [MERGE] forward port of branch 8.0 up to 27b3851 2015-11-03 12:58:02 +01:00
Christophe Simonis 27b38513b0 [MERGE] forward port of branch saas-3 up to 2e9b33b 2015-11-03 12:45:50 +01:00
Nicolas Martinelli 7173b0efb1 [FIX] account: make currency visible
In a multi-currency environment, the currency should be selectable when
registering a payment.

opw-653332
2015-11-03 12:25:08 +01:00
Goffin Simon 4709818222 [FIX] account: Register payment with several bills
When a payment is created for a bill, this is always the 'commercial_partner_id'
which is used as 'partner_id'.
Then:
-When registering a payment with several bills, the 'commercial_partner_id'
field of these bills must be the same.

-When grouping bills by partner, the groups must contain all the bills from
the same 'commercial_partner_id'.

opw:653005
2015-11-03 11:47:24 +01:00
Christophe Simonis 2e9b33b793 [MERGE] forward port of branch 7.0 up to 80c7209 2015-11-03 11:40:01 +01:00
Goffin Simon 13bb018877 [FIX] tools: html_keep_url
The urls surrounded with "" or '' don't have to be
clickable.

opw:652397
2015-11-03 11:17:31 +01:00
Denis Ledoux d5d8140f3a [MERGE] forward port of branch saas-6 up to 7158eaf 2015-11-02 18:06:25 +01:00
Denis Ledoux f9efc14440 [MERGE] forward port of branch saas-6 up to cea0a80252 2015-11-02 17:24:30 +01:00
Nicolas Martinelli ecc9710cb3 [FIX] crm: next action date display condition
Complement of commit 71b0a4c. The next action date (date_action) should
be red if in the past, not if the deadline date is in the past.

opw-653391
2015-11-02 17:03:32 +01:00
qsm-odoo c52e814d24 [FIX] web_editor: snippet options menu layout
Layout of snippet options buttons was wrong (spaces / linebreak / ...)
2015-11-02 16:02:10 +01:00
Christophe Simonis d0c9caf147 [FIX] base: avoid unlinking demo partners in tests
Unlinking a partner will also delete the related attachments (including
binary fields ones). When we rollback the transation at the end of the
test, the deleted attachments are not recreated in the filestore. This
unfortunate side-effect cause traceback when accessing these records in
backend.
In order to avoid this, we create disposable partners to test the api
cache behavior.
2015-11-02 16:00:00 +01:00
Géry Debongnie 40579c2b0c [REL] saas-7 release 2015-11-02 15:29:46 +01:00
Joren Van Onder 7f31dcca05 [IMP] point_of_sale: don't print receipts automatically by default
Only when using the POSBox with an ESC/POS printer should we print
receipts by default.
2015-11-02 15:28:13 +01:00
Olivier Dony 035a0ee412 [FIX] ir.attachment: no crash on missing file with bin_size=True
When bin_size=True is passed, `os.path.getsize()` raises an OSError
rather than IOError when the file cannot be found.
2015-11-02 12:55:30 +01:00
Denis Ledoux b7c1a9b288 [FIX] crm: Your pipeline must show opportunities only.
When using the menu Sales > Your pipeline,
The domain `[('type','=','opportunity')]`
wasn't enforced, and leads could
therefore be displayed with the form
of an opporunity.

This is already the case when using
the "Pipeline" button in the teams
of the CRM Dashboard.

opw-653417
2015-11-02 11:57:28 +01:00
Jamin Shah ddfbb690fb [IMP] various: template update
Templates have been updated to remove most of the styling and
simplify them. Some workding has also be done.
2015-11-02 11:51:30 +01:00
Thibault Delavallée 85e67792e5 [IMP] calendar: template and chatter upate
Templates have been updated to match the general layout of the
notifications and emails in Odoo. This module has its own
commit because those templates were already complex and well
designed.

Some chatter messages have also been removed. Too much messages
are produced when creating and updating events.
2015-11-02 11:51:25 +01:00