Commit Graph
5881 Commits
Author SHA1 Message Date
Odoo Translation Bot 38155cd786 [I18N] Update translation terms from Transifex 2017-10-11 17:17:17 +02:00
Dharmang Soni 2564d66fe0 [FIX] mail: smooth scrolling in discuss for iOS app
In the iOS app, the content immediately ceases to
scroll when you remove your finger from the touchscreen.

Now, he content continues to scroll for a while after
finishing the scroll gesture and removing your finger
from the touchscreen.
The speed and duration of the continued scrolling is
proportional to how vigorous the scroll gesture was.

This Css property is the only way we find to have
the same behavior in the android app and in the iOS app.
2017-10-11 15:11:45 +02:00
Christophe Simonis 6c2ab192ea [MERGE] forward port branch saas-16 up to 88a9980b0c 2017-10-10 16:49:59 +02:00
Christophe Simonis b5cbb2827e [FIX] mail: handle empty recordset when computing unread message count 2017-10-09 11:36:59 +02:00
Odoo Translation Bot ded650083e [I18N] Update translation terms from Transifex 2017-10-09 10:53:17 +02:00
qsm-odoo b1cdbf5143 [FIX] mail: restore mobile discuss design 2017-10-04 11:40:12 +02:00
Nicolas Lempereur c2f5039f84 [FIX] mail: error if called in onchange of virtual
This field can be called on an hr.expense for onchange on an
hr.expense.sheet record, thus the recordset could be a virtual ID so
self.ids could be empty leading to an error.
2017-10-03 10:26:26 +02:00
Jeremy Kersten 58d4eb1137 [FIX] mail: fix get_sys_logs to have the same behaviour than previous version
After convertion python2 to python3, the arg0 was send as dict instead
of one string. We prefer to keep the same behaviour that previously.
2017-10-03 08:44:34 +02:00
stefanorigano 299d2ea153 [FIX] mail: thread note bg-color
This commit fix 596e88f , using a better bg-color in order to improve
text readability. It apply also apply a minor padding-left to avoid
having text attached to the coloured div border.
Moreover, the bg-colour can not be applied to activities thread.

The little history behind: remove the bg-color was decided by fp and
the UX dep. I’m not aware if 596e88f is approved or not, but the final
result was not acceptable.
2017-10-02 15:42:24 +02:00
stefanorigano a5f8ed8975 [REF] mail: adapt systray mobile chatter to v11 design 2017-10-02 15:42:24 +02:00
stefanorigano 06b6df95f5 [FIX] mail: 'chatter's entry', restore UX prior to 7a91d87
This commit will restore the chatter entries UX defined for v11
and accidentally removed on 7a91d87.

In v11 unread systray chat entries have white bg and bold text. Entries
that have been read, instead, should be less emphasised with
light grey bg and normal font weight
2017-10-02 15:42:24 +02:00
stefanorigano 6e5157187d [FIX] mail: 'chatter app icons', restore design prior to 7a91d87
This commit will restore the chatter App icon design defined for v11
and accidentally removed on 7a91d87.

Apps icons should NOT have a circular shape in order to keep branding
consistency.
2017-10-02 15:42:24 +02:00
Odoo Translation Bot 0333007a08 [I18N] Update translation terms from Transifex 2017-10-02 15:06:48 +02:00
Martin Trigaux 0e3455222d [I18N] Update translation source terms 2017-10-02 13:34:51 +02:00
Martin Trigaux 7572b57c27 [FIX] mail: do not translate channel_icons 2017-10-02 10:25:12 +02:00
qsm-odoo da11387587 [FIX] web, mail: complete commit https://github.com/odoo/odoo/commit/87f1e360a89eb7617d5fd60cad58a143bea441df
Tests are overridding the `config` object directly but this was wrongly
done. Also, tests had to be adapted to set the `isMobile` value
correctly.
2017-09-29 16:39:06 +02:00
Aaron Bohy 36b4d78a26 [FIX] web,mail: reset focus after onchange on x2many
Rev. 2728fe1 introduced an attempt of restoring the focus on the
currently focused field in an x2many list after an onchange
returned, and the list has been updated. However, it was often
wrong (e.g. leaving a field by pressing tab/shift+tab, clicking on
another field...) and reset the focus on an unexpected field.

In addition to fixing this issue, this rev. also unifies the helper
functions to get and set the cursor positions in an input or
textarea, as they were duplicated between mail and web.
2017-09-29 16:02:36 +02:00
qsm-odoo c068cb62c6 [FIX] mail: make "Schedule activity" text smaller in mobile 2017-09-29 14:41:41 +02:00
qsm-odoo 87f1e360a8 [FIX] web, mail, base: config's isMobile definition
The `isMobile` variable was defined at the right place (`config.device`)
but was set at the wrong place (`config`).

Thank you for making me author of all the `isMobile` lines by
the way... :)
2017-09-29 14:41:41 +02:00
Thibault Delavallée ac723d2b05 [FIX] mail: fix display of done activities
Purpose: activity title / activity note / feedback title / activity
feedback should be better displayed.
2017-09-29 10:59:59 +02:00
qsm-odoo 2506a9564b [FIX] web: review UI tag color system
- Kanban colors and tag colors are now the same
- Tag color 0 (default) is now back to be the invisible kanban one
- Same colorpicker for kanban and tags
- Define correct number of colors (12 not 13)
- Color 0 should be a neutral one (gray)
- ...
2017-09-28 13:29:56 +02:00
Raphael Collet 36141931bf [FIX] mail: remove field res_model_id for performance reasons (#19744) 2017-09-27 16:58:19 +02:00
Pratima Gupta 9877989e06 [FIX] mail: only set module icon if possible
Posting a message on a custom model (i.e. created with Studio) crashed.

If it's a custom model, its `_original_module` attribute is not correctly set so
trying to retrieve the icon based on this attribute does not work.
2017-09-27 13:51:28 +02:00
Hetashree Chauhan 8efecd31bd [IMP] mail: labels for sending mail to all recipients has been changed 2017-09-26 12:21:25 +02:00
Raphael Collet b4824d78eb [FIX] mail: avoid re-reading a value given to create
After a message is created with a given `author_id`, reuse `author_id` instead
of `message.author_id.id`.
2017-09-26 09:32:54 +02:00
Raphael Collet 3ca6392a3f [FIX] mail: simplify ormcache parameters to avoid queries
Make the cache depend on `user` instead of `user.groups_id`.
This saves 2 queries on each write/create of `mail.thread`.
2017-09-26 09:32:54 +02:00
Martin Trigaux 39e83e84c7 [I18N] Update translation terms from Transifex 2017-09-25 14:05:27 +02:00
kap-odoo bbcd49df6b [FIX] mail: p3 issue on activities 2017-09-25 11:09:09 +02:00
qsm-odoo bae966c106 [FIX] web, mail: fix bootstrap customization
- bg-*-full color classes were only defined in enterprise while they
  should have been defined here (fixes kanban column progressbars)
- new @gray-lighter variations should be defined in variables.less
  as they are bootstrap extensions, not bootstrap overrides
2017-09-22 14:58:10 +02:00
Raphael Collet 59a8234fbc [FIX] mail performance: avoid useless queries
Avoid making queries that are known to return empty recordsets, and do not
format messages to be notified on no channel.
2017-09-21 16:10:13 +02:00
Martin Trigaux 9d2e825340 [I18N] export saas-18 source terms
saas-18 will be the future version 11
2017-09-20 16:14:08 +02:00
qsm-odoo 9e051adbf7 [FIX] mail: properly style suggested partner checkboxes in chatter 2017-09-20 15:03:56 +02:00
qsm-odoo 7b965a9673 [FIX] mail, web: chat window and emojis
- Fix several contexts where the emoji popover was hidden by a webclient
  element (control panel / ...). To solve this bug, the design has been
  improved to not use popover but instead use custom design (better
  integrated with new chatter design)

- Chat window is now still usable when a modal is opened

- Simplify chatter LESS
2017-09-20 15:03:56 +02:00
qsm-odoo 26e079f246 [FIX] mail: make clicking on chat window's emoji button properly work
Before this commit, clicking on the button opened the emoji popover
then closed it immediately. This was because of a handler which said
that clicking on any part of the composer should focus the input
element. This is indeed required when the UI is blocked (thanks to
the `blockUI` function). Solution is to not force this focus when
clicking on any composer's button element.

To prevent breaking those two behaviors (blockUI focus and emoji), two
tests were implemented.
2017-09-20 15:03:56 +02:00
Raphael Collet 69161ed69c [FIX] mail: performance, replace filter() by condition in domain 2017-09-20 13:30:56 +02:00
Raphael Collet 87970ea344 [FIX] mail: add cached method to retrieve message subtypes
This saves queries to retrieve message subtypes for a given model.
2017-09-20 13:30:56 +02:00
Prakash Prajapati 4afdc57c88 [FIX] mail: Open simple partner form when email is requested on actions
Purpose
=======

When you want to send an email to a contact without an email address set, you get a wizard to enter the contact email.

In master, you get the full contact form

You should get the simplified form view (like in 10.0)
2017-09-19 10:50:51 +02:00
fwi-odoo 43e412ccab [FIX] mail: fix due to the changes for the app switcher whitelist
The app switcher in the enterprise branch introduces a new way to whitelist the
element in the app switcher. This commit apply this mechanism to the mail windows.
2017-09-19 10:12:28 +02:00
Monish Soni 09e44c02f2 [FIX] mail: Fix typo in mail chatter 2017-09-18 17:57:07 +02:00
Dhawal Limbuwala 596e88f05d [FIX] mail: restore background color of notes in chatter
It had been removed by the new design of v11, but it is necessary
to easily make the distinction between internal notes and messages.
2017-09-18 15:56:14 +02:00
Géry Debongnie cebbee8929 [FIX] mail: prevent pos tour from sometimes failing
Here is what could (sometimes) happen in community:
- the point of sale tour is started by the runbot
- it loads the '/web' url
- this instantiate the mail client action (init)
- the tour sees that the POS link is in the dom and clicks on it
- the action manager destroys the discuss client action (before its
  start method is called)
- the destroy method from the client action is called, this.$buttons
  is not set, the destroy method causes a traceback
2017-09-18 15:39:06 +02:00
Xavier Morel f1a85ba70a [FIX] *: fix a bunch of incorrectly documented docstring
Fix a bunch of ill-documented/incomplete/incorrect method docs
Without this, the automatic doc generation does not work.
2017-09-18 11:54:39 +02:00
Thibault Delavallée 0296f198b2 [IMP] mail: tests: add a new simple base model for testing
Purpose: have simple test models to use in various modules and be
independent from standard models behavior / tweaking.
2017-09-15 15:56:23 +02:00
Yannick Tivisse 51b5ee7c3c [IMP] mass_mailing: choose model among all chatter models
This commit removes the strange selection box based on a magic flag and
some strange methods returning a string. Instead just allow to send mass
mailing on all models inheriting from mail.thread using the is mail
thread flag.

Various addons are updated to remove the _mail_mass_mailing class
attribute used to determine mass mailing capability.

We consider people could send a mass mailing on every model inheriting
from mail.thread. It makes no sense to limit it to a given set of addons.
2017-09-15 15:56:23 +02:00
Aaron Bohy 7a91d87614 [IMP] im_livechat, mail: Discuss UI in mobile
- Extract mobile specific code for the client action to a specific
  file
- Massive clean of less rules
- Unify channels preview of the systray dropdown and the mobile UI
  of Discuss
- Ensure to only load the last message of each channel in mobile,
  as this is not used in desktop (unless the user opens the systray
  menu)
- Make livechat available in Discuss mobile UI
2017-09-15 15:25:06 +02:00
Aaron Bohy 9850cb1c3c [REF] mail: client action: convert to new guidelines
And refactor the code to ease the development of the mobile
version.
2017-09-15 15:25:06 +02:00
Dharmang Soni 4685e4bc7f [IMP] mail: improve Discuss UI for mobile devices
- Brand new UI for Discuss client action (with tabs for Inbox,
  chats, channels...)
- In mobile, conversations always open in Chat Windows
- Chat window UI improved (both mobile and desktop)
- Channels preview (used in the systray menu, and now in the mobile
  UI of Discuss) improved
- Other minor less tweaks
2017-09-15 15:25:06 +02:00
stefanorigano fafbc5ebe9 [REF] *: use new kanban record classes/layout 2017-09-15 14:34:18 +02:00
stefanorigano 3fb7842864 [REF] web, mail: minors UI fixes
- List view: sortable icon, do not force position to right
- Mail: do not vertically reposition systray's icons
- Form view: oe_subtotal_footer, minor design imp
2017-09-15 13:39:01 +02:00
Parth Patel 84c0b81c6a [IMP] discuss: Adjust chat window to avoid overlapping the scrollbar 2017-09-14 10:53:01 +02:00