Commit Graph
98850 Commits
Author SHA1 Message Date
Aaron Bohy 28d3dc6cc9 [IMP] mail: only display needactions in channel inbox 2015-10-02 15:49:37 +02:00
Aaron Bohy 8908d5ccab [IMP] mail: reduce number of lookups in channels dict
Instead of using the channel's ids to communicate between the client action and
the chat manager, directly use the channel itself. This prevents many lookups
in the channels dict to retrieve the channel from its id.
2015-10-02 15:49:36 +02:00
Aaron Bohy 986f449909 [IMP] mail: client action: focus on composer when opening a channel
Disable this feature on mobile as we don't want the mobile composer to open
each time we switch from an channel to an other.
2015-10-02 15:49:10 +02:00
Aaron Bohy 98bd82365c [FIX] mail: fetch channel info on new message notification
When receiving a new message, we add it in the client side cache of the
corresponding channel. The problem was that when we previously unsubscribed
to this channel, it was removed from the cache, producing a traceback when
trying to add the new message.

This rev. checks whether or not the channel is in the cache, and if not,
performs an rpc to fetch its info before adding the message.
2015-10-02 15:49:10 +02:00
Aaron Bohy 8a99491793 [IMP] mail: cache messages for each fetched domain
This is kind of a fix as well as it permits again to use filters on channels.
2015-10-02 15:49:10 +02:00
Aaron Bohy 6bbbbc7aff [FIX] web: backport module web.config for enterprise compatibility
Addon mail needs to know if we are using a touch device to set or not the
focus on the chat composer. However, this information was not available in
the community webclient.
2015-10-02 15:49:10 +02:00
xmo-odoo 249d0215c6 [FIX] website: saving new menu items
simplejson and the builtin json module apparently differ in how they
decide to optimise decoding JSON strings to str rather than unicode
python strings, so check for basestring rather than one or the other.
This may also depend on the Python version.

Closes #8726
2015-10-02 15:36:13 +02:00
Xavier Morel 7352b34f0d [FIX] website: broken rename_page JS method
Variables had been renamed/replaced everywhere except rename_page.
2015-10-02 14:32:58 +02:00
eLBati 33094eeca2 [FIX] website_parner: when installing website_partner directly:
Can not inherit from mail.view_emails_partner_info_form as it's not in the
dependences of website_partner

Closes #8708
2015-10-02 14:06:42 +02:00
Commandant Custo 9e80b994be [FIX] res_partner: tags were sorted by parent name, then by id.
Replaced by: Tags are sorted by parent name, then by name.

Closes #8858
2015-10-02 13:49:48 +02:00
Xavier Morel 41f9e7938c [FIX] crm: mark lost wizard
Created a new attribute on the lead instead of updating the lead's "lost
reason" field.
2015-10-02 13:15:37 +02:00
Nicolas Martinelli eee9ba7142 [FIX] auth_oauth: display glitch 2015-10-02 12:26:57 +02:00
Nicolas Lempereur cbb8799b6f [FIX] web_editor, mass_mailing: summernote oversight and video
* some oversight when updating summernote with d33086c,
* fix style when replacing image with video
2015-10-02 12:24:05 +02:00
Xavier Morel 20bab327d4 [FIX] possible incorrect request.env
On a new database, logged as administrator, installing
``website_slides`` commonly (but not systematically) leads to a 403
error when the module install redirects to the slides
index (``/slides``).

The issue here is the installation of the slides module deletes the
existing routing map, which needs to be regenerated. The regeneration is
performed at the start of URL dispatching *before authentication* but
accesses ``request.env` in order to look up the list of installed
modules, which generates and caches (due to env being a lazy_property)
an ``Environment(cr, None, context)``.

Once regeneration and auth are done the controller is executed with
``request.env`` still being set to ``Environment(cr, None, context)``
and thus the first tentative access (search) to an object blowing up
with an AccessError. The next request or an initial request not
accessing ``request.env`` will work fine as they'll reuse the routing
map generated by the initial request.

Fixed by just getting the set of installed modules from the registry.
2015-10-02 11:25:42 +02:00
Arthur Maniet 3a26046b88 [FIX] account: bank statements reconcile invoice / match payment logic
The only difference between payment matching and reconciliation is that
in the former the reconciliation was already made while in the latter we
do it at bank statement reconciliation time.

So they behave the same in the interface except that partial reconciliation
is not proposed for payment matching.
2015-10-02 11:18:46 +02:00
Nicolas Martinelli 13122e4da4 [FIX] website_sale: hide cart count and checkout button
When the cart is emptied (e.g. set quantity to zero), we need to hide
the cart count and the ckeckout button.
2015-10-02 10:23:54 +02:00
Nicolas Martinelli b1965f191a [FIX] base: warning display if install new module 2015-10-02 09:50:56 +02:00
Daniel Dico f6d48f3d02 [FIX] purchase_requisition: can't adapt type 'account.tax' error
map_tax returns recordset while we expect ids to compose the (6, 0, ids) command
2015-10-02 09:45:42 +02:00
Daniel Dico 02ad0e5b98 [FIX] purchase: can't adapt type 'account.tax' error
map_tax returns recordset while we expect ids to compose the (6, 0, ids) command
2015-10-02 09:43:50 +02:00
Markus Mattes cdbc3c3967 [CLA] signature for mmattes 2015-10-02 08:29:13 +02:00
Markus Mattes 39b015b86c [FIX] website_mass_mailing: unsuscribe to a mailing list
Fix the reference to the template 'website_mass_mailing.page_unsubscribed'
2015-10-02 08:24:01 +02:00
Fabien Pinckaers bc90b5c9b5 [FIX] same ID used twice, courtesy of Stefan Rijnhart 2015-10-01 17:21:17 -07:00
Antony Lesuisse 13c7532b03 [FIX] ir_autovacuum: lower frequency to once a day 2015-10-02 00:08:04 +02:00
Josse Colpaert 872896947e [FIX] stock: allow moving a pack with a product with lots and main_domain and action_done should be rebuilt every time
Main_domain for getting preferred_quants needs to be reset every time.
(otherwise the method will change it every time and it will lead to inconsistent results)

An entire pack can be moved also when the products inside require lot tracking.  (check_tracking update)
There is no check if the quants have lots when a pack is moved entirely.
On the other hand,  the "put in pack" checks that what is put in it has the necessary lots.
(but if incoming is without lots and outgoing with, you can still do an entire pack out without lots)
2015-10-01 18:08:38 +02:00
Arthur Maniet ceb8536b55 [FIX] account: reconciliation interface broken M2O dropdowns 2015-10-01 17:33:44 +02:00
Nicolas Martinelli dda5eb7dff [FIX] website_quote: remove loading attribute if missing data
In commit bc43417b, a loading attribute is set on any submit button. The
problem is that this attribute is the first thing to be set. Therefore,
we cannot prevent its propagation.

Since Bootstrap sets this 'loading' attribute in a setTimeout, we need
to remove it in a setTimeout as well.
2015-10-01 17:01:23 +02:00
Thibault Delavallée 86e50baefc [REF] mail: small method refactoring to ease chat integration 2015-10-01 16:36:24 +02:00
Christophe Simonis 7bdee12038 [FIX] survey: invalid route forced in POST. 2015-10-01 16:21:22 +02:00
Christophe Matthieu c81609eb43 [FIX] web: inverse extend attributes to use the overwrite of render_cell 2015-10-01 15:35:26 +02:00
Christophe Matthieu ce30ee7066 [FIX] web: use _.clone to avoid change of 'default_value' 2015-10-01 15:35:26 +02:00
Christophe Simonis d750206c49 [MERGE] forward port of branch saas-6 up to e9f1ee4 2015-10-01 15:16:59 +02:00
Christophe Simonis e360464742 [FIX] yaml import: correctly handle menuitem action 2015-10-01 15:14:40 +02:00
David Monjoie 3ff35206ce [IMP] mail: renamed to Discuss
To have the same as the "Discuss" menu. Otherwise people look
for the "Discuss" application and they don't find anything.
2015-10-01 15:09:40 +02:00
Damien Bouvy 2caec6607b [FIX] sale: duplicate field in view is duplicate 2015-10-01 14:41:16 +02:00
Géry Debongnie f6c5da32b3 [MERGE] mail: refactoring of the chat interface
This merge is a large refactoring of the chat/channel code (client side
code).  A goal is to simplify the logic of updating chat windows,
chatter and channels.

A notable change is that it also disable the livechat js code, because
it was not updated on time.
2015-10-01 14:02:48 +02:00
Aaron Bohy 0d91339b7b [IMP] mail: increase needaction counter on new message notification
At least, when someone mentions a user in a message posted in a channel, a
notification is sent by the server that a new message just arrived in that
channel. Client side, we then decide whether or not this message should appear
in the Inbox as well. In the positive case, we can increase the needaction
counter.

Problem remains for messages sent from chatters and by using the mail icon in
the systray, as for those ones, no notification at all is sent by the server.
2015-10-01 14:00:20 +02:00
Aaron Bohy 0e2dd225f6 [IMP] mail: client_action: sidebar items fine tuning
Mostly, display in bold channels with unread messages
2015-10-01 14:00:20 +02:00
Géry Debongnie 673f4aa4a7 [FIX] bus: disable longpolling in test mode
In test mode, only one cursor is available, and longpolling will take
it, and not give it back before 60s, causing a phantomjs timeout.  This
commit simply return an error when the server is in test mode.

Sadly, I had to patch the web client to prevent logging the error in
this case, because that's the way phantomjs detect if there is a
problem.
2015-10-01 14:00:20 +02:00
Aaron Bohy 730efcc3df [FIX] mail: mark a message as read should not hide 'load more' button
It was hidding it because the method that removes a message from the thread
didn't pass the options for the thread rendering, and the flag specifiying
whether or not the 'load more' button should be displayed is in this options
object.
2015-10-01 14:00:19 +02:00
Géry Debongnie 6b3f1c1b22 [FIX] web: increase log timer
boot loader waited for only 100 ms before logging failed modules.
However, modules can now wait for deferred before completing their
loading, so this delay is increasingly getting too short.
2015-10-01 14:00:19 +02:00
Aaron Bohy de024f43ab [FIX] web,website: bundle utils.less to assets fronted 2015-10-01 14:00:19 +02:00
Géry Debongnie 6ea633ee62 [FIX] mail: synchronize needaction counter
in systray and in client action.  This is only a client side fix.  A
problem persists: the server does not notify the client when a new
message arrives in the inbox, to the client can not possibly increase
the counter.
2015-10-01 14:00:19 +02:00
Géry Debongnie 9b44754bd5 [FIX] website_livechat: update assets due to refactoring of mail 2015-10-01 14:00:19 +02:00
Géry Debongnie b47c2b955b [FIX] im_livechat: temporarily disable client code
This is done because of large mail refactoring and the need of quick release.
We will rewrite it asap.
2015-10-01 14:00:19 +02:00
Aaron Bohy b105a37534 [FIX] mail_tip: update code to chatter refactoring 2015-10-01 14:00:19 +02:00
Géry Debongnie 2a5f07e0b9 [REF] mail: last part of the chat refactoring (client side)
Removal of old files and update of assets and imports

Joint work with aab
2015-10-01 14:00:18 +02:00
Géry Debongnie 62be162877 [REF] mail: second part of the chat refactoring (client side)
Joint work with aab
2015-10-01 14:00:18 +02:00
Aaron Bohy 512287cac1 [REF] mail: first part of the chat refactoring (client side)
Joint work with ged
2015-10-01 14:00:18 +02:00
Géry Debongnie aa23a5a41d [IMP] bus: allow bus to restart polling on demand
The problem was that the bus didn't listen to new channels when they were
registered until the end of the current longpoll. This allows mail to manually
restart the polling.
2015-10-01 14:00:18 +02:00
Josse Colpaert 729c1fbec1 [FIX] sale: onchange for sale_delay/customer_lead not needed as it is in sale_stock 2015-10-01 13:05:56 +02:00