Commit Graph
98873 Commits
Author SHA1 Message Date
Jérome Maes 2df240ded0 [FIX] bus : notification should be committed before awake longtpolling thread
If calling more than once `sendmany` (or `sendone`) on the same http request, the `NOTIFY imbus` will tell pertinent polling thread to
fetch their notifications in the bus table, which will not contain the new notifications, since they are not yet committed. For some reason, this
doesn't happen when calling only once `sendmany`. Committing the notifications breaks the tests since no rollback is possible.
So, `self._cr.commit()` should not be called in a test environement.

In this case, we cannot use `isinstance(self._cr, TestCursor)` since TestCursor is only avaiblable for http request in test mode. Here the cursor is a normal cursor, and to determine if we are in test mode, there is no other option than checking the config of the odoo server.
2015-10-06 09:44:38 +02:00
Jérome Maes 22631a152a [FIX] mail, website_mail : special controller for message author avatar
Previous commit (3304b31938) was not performant enough for AL, so got special autorization to make a particular controller for mail.message author avatar. Avatar of message is avaiblable if current user has 'read' access right to the document. Otherwise the default avatar is one white pixel.
2015-10-06 09:43:46 +02:00
Jérome Maes a4b17c2621 [FIX] im_livechat : assets controller, mock_attachment includes id now.
I miss commit c3c2281a4d, so the search on attachment url is useless now.

Also check if the return content is not None, avoiding to decode base64 a None object.
2015-10-06 09:43:02 +02:00
Joren Van Onder 11e429cb7a [FIX] pos_mercury: use a journal with an associated Mercury config
Before this pos_mercury would use journals of type Bank, and would not
use the Mercury configuration on journals to figure out which one to
use. This meant that it would 'wait for swipe' on bank journals,
regardless of whether or not they were configured for Mercury.
2015-10-06 09:12:51 +02:00
Damien Bouvy 1fcf5bdadc [FIX] procurement: no procurement rule needed for digital products
The refactoring of product added a new type of product besides stockable/consumable/service: digital
It usually behaves like a service, for example it does not need a procurement rule (which is the point of this fix)
2015-10-05 17:31:13 +02:00
Damien Bouvy 0b5df29c8f [FIX] website_sale, website_portal_sale: new sale module compatibility
- SO states have changed, reflect this in the controller
- digital products are no longer services, but they still do not need a picking
2015-10-05 17:31:13 +02:00
Aaron Bohy c3a5f0fb7b [FIX] mail: client action: channel unsubscribe notification
Correctly display the name of the unsubscribed channel in the notification, not
the name of the channel we switched to afterwards.
2015-10-05 16:37:49 +02:00
qdp-odoo c5fd4c05b8 [FIX] account, purchase: keep the default account of invoice line instead of replacing it to False (happens when the product/product categ is not correctly configured) 2015-10-05 15:38:47 +02:00
Cedric Snauwaert 53b741351a [FIX] purchase_requisition: move button to create a quotation away from button_box
this also fix a problem where the button did not appear on enterprise version because it
lacked the oe_stat_button class
2015-10-05 15:19:55 +02:00
qdp-odoo d6928b3de1 [FIX] purchase: creation of vendor bills by clicking on 'invoice' button of PO was wrongly creating a customer invoice, the list of vendor bills for a PO with no invoice was wrongly showing all the vendor bills and the PO is now set as default value for manual creation of bill. Fixes #8872 2015-10-05 14:46:26 +02:00
Thibault Delavallée eb7139b01f [IMP] mail: context key for message author subscription
By default the author of a message is always removed from the notified recipients.
However in some cases it is interesting to be able to notify the author. A context
key has been added that handle that case.
2015-10-05 11:56:05 +02:00
Thibault Delavallée 17e562ecef [FIX][TESTS] mail: auto subscription, needaction
- fixed computation of needaction flag (typo)
- fixed order of auto subscription and message tracking: first subscribe then
  track. This way messages are send to newly added followers.
- added tests in CRM to ensure this behavior works by updating the already
  existing test and using the mail test class
2015-10-05 11:56:05 +02:00
Thibault Delavallée 803bf8f75d [IMP] mail: invite email, notification style
Use the notification template when sending invite emails (add a follower
with send a message checked).
2015-10-05 11:56:05 +02:00
Thibault Delavallée 2d5d2f0fe6 [FIX] mail: template used for notification 2015-10-05 11:56:05 +02:00
Nicolas Martinelli f12e1c26e9 [FIX] product: check parent company when selecting supplier
When searching for a matching supplier, we now accept the parent company
of the supplier.

Fixes #8874
2015-10-05 10:29:56 +02:00
Aaron Bohy 435f748410 [FIX] mail: client action: crash on channel unsubscribe
After unsubscribing from a channel, the client action switches to inbox.
Method set_channel() takes as argument the channel to switch to, not its id.
2015-10-05 10:17:53 +02:00
Olivier Dony 0c35468806 [FIX] * settings: cosmetic changes for boolean options
Remove some duplicate config settings and improve
the layout of boolean options in various
config screens
2015-10-05 09:56:00 +02:00
Odoo Translation Bot 04c6ee54d8 [I18N] Update translation terms from Transifex 2015-10-04 03:03:19 +02:00
Fabien Pinckaers 52484b0132 [IMP] Terminology fix 2015-10-02 19:09:49 -07:00
qsm-odoo e7418cef22 [FIX] web: DomainEditorDialog
(backport of enterprise version)

In readonly mode, the selected domain was not correct when
click on "see selection".
2015-10-02 16:53:58 +02:00
qsm-odoo 8181a80080 [IMP] web(_editor): translate icon compatibility
Add the $translate variable for enterprise compatibility and hide it in
web editor widgets (these had already no translate icon in community).
2015-10-02 16:53:58 +02:00
Yannick Tivisse 3631c962fe [IMP] account: Be able to search on journal entries by account 2015-10-02 16:02:44 +02:00
Aaron Bohy de8acb2569 [FIX] mail: emojis: replace all occurences of the emoji in messages
The problem was that, when substituting the emoji pattern by the emoji icon,
we only replaced the first occurence of the pattern.

This rev. replaces all occurences of the pattern by performing a global match
('g' option), and correctly handles matches overlap by using a lookahead
assertion ('x(?=y)') instead of basic non-capturing parentheses ('x(?:y)').
2015-10-02 15:49:37 +02:00
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