Commit Graph
82 Commits
Author SHA1 Message Date
Aaron Bohy afbf90db00 [FIX] im_livechat: avatar size in operator kanban view
This rev. improves the layout of the inner kanban view for
operators in livechat channels, mainly by setting a max-width on
their avatar (with classname 'o_kanban_image').

The motivation of this commit comes from a feedback following an
internal migration.
2018-03-13 12:51:44 +01:00
Nicolas Martinelli 02b9dbac32 [FIX] im_livechat: missing file
`$.position` is defiend in `jquery-ui.js`, which is not included in the
`external_loader` asset.

opw-783901
2017-12-07 15:14:04 +01:00
stefanorigano fafbc5ebe9 [REF] *: use new kanban record classes/layout 2017-09-15 14:34:18 +02:00
Mitali Patel ad79fed261 [IMP] im_livechat: add copy to clipboard for the website live chat widget code
This commit adds 2 buttons to copy directly the code needed to add the livechat
in the website.
2017-09-14 10:54:00 +02:00
jpr-odoo 46699c5214 [IMP] mail: Add a preview popup for attachments
Purpose
=======

The goal is that when you click on an attachment, you should get a preview of it and then you get the possibility to download it.
2017-09-05 15:52:15 +02:00
Christophe Simonis fa3e89064a [MERGE] forward port branch saas-16 up to 104dfe3c07 2017-07-20 11:48:49 +02:00
Nicolas Martinelli 779fc8e4fe [FIX] *: raw_value for id
Since the new views, `record.id.value` contains the formatted value of
the ID, meaning it can contain separators. For example, by default,
`1234 => 1,234`. Since this value is used in the image URL, using
`value` won't work anymore.
2017-07-17 09:48:24 +02:00
Rohan Patel 184e6f68c6 [IMP] im_livechat: rating improvements
This commit display rating on kanban card
of livechat channel, in order to directly
jump on the kanban rating used to compute
the customer satisfaction on the last 7 days.
Default filters are used.

A reporting menu entry is also added to have
access to global livechat satifaction reporting
with graph and pivot views.
2017-07-10 08:49:12 +02:00
dbh 145853c9c7 [IMP] rating,rating_project,livechat: primary views
Rating is used on different objects that
don't have the same business needs.
We want rating module to provide the common
needs (filter, views, basic actions, ...) and
other module will extends these basic tools
to complete their specific business needs.
2017-07-10 08:46:27 +02:00
Jérome Maes a4b136377a FIX im_livechat bundle due to new views yeay 2017-05-08 15:57:18 +02:00
Martin Geubelle 3b828104b6 [FIX] *: remove many2many_kanban widget occurences
This widget doesn't exist anymore as it has been factorized. Remove the
attribute widget will use the correct widget `many2many`.
2017-04-19 17:49:35 +02:00
Géry Debongnie 905e01921f [REF] web, *: redesign all JS views
This commit introduce a full redesign of all JS views.  We started
basically from scratch.  The goal was to unify all the various views
under a common framework, to make them testable, to make then usable in
different conditions (in studio, or in the frontend), and to make our
lives easier.

Some important points are:
- we introduced new coding guidelines (camelCase, 80 chars width, ...)
- we have a brand new testing framework (still QUnit based)
- kanban view moved to the web addon
- calendar view (formerly web_calender) moved to web as well
- the tree view was removed
- all new code should be documented

We hope that this code is the start of a new era for the Odoo web
client, we want to have a high quality codebase, well documented, well
tested, well designed.

Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2017-04-11 19:44:38 +02:00
Martin Trigaux 2382520c34 [IMP] odoofication 2017-03-30 08:59:13 +02:00
Aaron Bohy 129be7ff78 [FIX] im_livechat: 'web.session' added twice in external bundle
The JS module 'web.session' is already defined directly in the template.
When two modules have the same name, the second one that is read is
ignored, and a error is displayed in the console (in debug mode).
2017-01-31 10:18:27 +01:00
Jérome Maes 567ae3137f [IMP] rating,livechat: better use of rating mixin
- use rating.mixin field instead of rating_ids to
display rating on form view
- clean controller method
- ...
2017-01-09 16:19:26 +01:00
Fabrice Henrion 4917382f99 [FIX] im_livechat: typo
Closes #13508
2016-11-14 17:14:43 +01:00
jpr-odoo b6000fbb0a [IMP] im_livechat: removed widget 'url' on the 'web_page' field for better color visibility and that field display as normal view not clickable 2016-11-07 15:56:58 +01:00
Mansi Trivedi 1fa4fe6d01 [IMP] im_livechat: renamed display name
Change name from 'Website Live Chat' into 'Live Chat'
Also update path into settings to get the website_livechat
module in a string help.
2016-11-07 12:01:56 +01:00
Christophe Simonis f4fc3985b6 [MERGE] forward port branch saas-12 up to 10cde43 2016-09-16 11:03:50 +02:00
Denis Vermylen (dve) 659fbe5c7d [FIX] livechat: fix js web dependencies
issue: could not load the /im_livechat/support/<channel_id> route
broken since: 00120a9271
2016-09-14 17:07:14 +02:00
Fabien Pinckaers bb98f38d95 [IMP] im_livechat: typo Quit --> Leave 2016-08-27 17:04:09 +02:00
Thibault Delavallée efd55ab8a5 [REF] various: rename openerp node to odoo in xml files 2016-08-10 15:48:10 +02:00
Fabien Pinckaers 9bf9eb863b [FIX] rating: correct list view (list --> tree)
[FIX] livechat_rating: ratings from livechat should be consumed
(otherwise invisible)
[IMP] usability: better views and tooltips
2016-07-15 15:13:17 +02:00
Fabien Pinckaers f1ab3face1 [IMP] im_livechat: "website live chat" menu renamed to "Live Chat" 2016-06-17 10:39:15 -07:00
Christophe Matthieu 25bf3e9f74 [FIX] im_livechat: don't translate livechat javascript template 2016-05-25 15:12:01 +02:00
Mansi Gandhi 3c14eee441 [IMP] im_livechat: Clean no_content message for 'History' action 2016-05-12 13:25:05 +02:00
Aaron Bohy 2264378739 [ADD] im_livechat,mail: canned responses support
Use the mention mechanism of the composer to autocomplete on canned responses
(keyword :) with fuzzy search.

Directly perform the string replacement in the composer, instead of
server-side as before.

Add a menu item to access an editable list view to create and edit canned
responses.

Add two canned responses as demo data.
2016-05-03 10:34:41 +02:00
Aaron Bohy 9217fef09e [FIX] im_livechat: wrong path to variables.less in enterprise
File variables.less is located in web/ in the community edition, but in
web_enterprise/ in the enterprise one.

This fix uses the template 'web.less_helpers' containing the correct version of
variables.less instead of directly include variables.less and utils.less.
2016-04-21 15:21:41 +02:00
Jigar Patel 7c49782fea [IMP] im_livechat: Specify that idling operators get disconnected 2016-03-23 16:46:46 +01:00
Christophe Matthieu 1a2b1e69dd [IMP] web: remove useless jQuery.timeago lib
Replace call by moment(date).fromNow()
2016-02-17 09:47:45 +01:00
Christophe Simonis 2a834c22b0 [MERGE] forward port of branch 9.0 up to 100d604 2016-01-07 18:19:17 +01:00
Christophe Simonis 100d604cb0 [FIX] im_livechat: correct loader js code 2016-01-07 18:16:20 +01:00
Christophe Simonis 31ce19bd7c [MERGE] forward port of branch 9.0 up to 97e87a4 2016-01-05 15:51:49 +01:00
Aaron Bohy 30003dbce3 [FIX] im_livechat,mail: various ui fixes/improvements
im_livechat:
  - feedback message wording
  - livechat_channel form view typo

mail:
  - channel form view: email_send field label wording and layout
  - notifications preview extended
  - client action mass mailing composer fine tuning
  - client action mass mailing channels tooltip
  - client action idle bullet color
2015-12-28 10:19:22 +01:00
Aaron Bohy d8605b7993 [FIX] im_livechat: matching rule in cache
The problem was that the matching rule was evaluated before sending the html
page, and the script was inserted in the page according to the matching rule
(it wasn't inserted if the rule was 'hide_button'). However, the matching rule
wasn't re-evaluated if the page was already in the cache. The page content thus
might depend on a matching rule computed for someone else in that case.

Rather than inserting the script according to the matching rule, we insert it
only if there is an operator available. We then ask for the matching rule in
the livechat widget, by RPC, and we reject its willStart deferred if the rule
says so. We also re-check for operator availability in the same RPC.
2015-12-24 12:59:46 +01:00
Martin Trigaux c298cf3250 [MERGE] Forward port of 9.0 up to 7892d99f 2015-12-18 16:15:08 +01:00
Fabien Pinckaers 2f19fdc3c0 [FIX] Misc livechat fixes: bugfix in search view, history accessible, better form view 2015-12-11 02:53:15 +01:00
Martin Trigaux e3026aa0bd [FIX] typo, English
Did you missed me? That was a big one.
2015-12-04 15:06:33 +01:00
Nicolas Lempereur 4424f301a6 [FIX] im_livechat: missing dependencies in im_livechat page
The Website Live Chat is supposed to appear following 3 ways outside of
the backend:

- in a singleton page with path /im_livechat/support/{id}

- in a page in which a code code snippet (with two script and a css
  bundle) has been inserted in the head section

- by installing the module "Website Live Support"

In the first both instances, including some less files and bootstrap
default variables is required which this commit do.

In the last instance these file should already be included in the
website and the additional assets required are inserted in the
website.assets_frontend bundle.

opw-654898
2015-11-24 13:02:47 +01: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
Jérome Maes 8e63088dbc [FIX] im_livechat : web.session defined twice
On website page, in debug mode, error 'web.session already defined' appears in the console. This was due to the fact the namespace web.session was redefined a second time to bind the session on the server_url param for the livechat to work. On website page, this is already done by the native web.session (session_instance.js). Define a session in the bundle is required when livechat is intergrated on external page, so fetching the bundle is done through /im_livechat/loader/, and generating a web.session can be conditional.
2015-10-01 12:41:35 +02:00
Christophe Matthieu 29e45d1cc2 [FIX] im_livechat, website: typo t-translation 2015-09-09 08:44:40 +02:00
Yannick Tivisse 1e8a890be6 [IMP] Rename Live Chat into Website Live Chat 2015-09-07 18:25:51 +02:00
Christophe Matthieu 522fcacb21 [IMP] base: assets now directly use /web/content url 2015-09-03 19:31:00 +02:00
Jérome Maes 58c9530311 [FIX] im_livechat : fix session binding. Required to bind session on server url from livechat to male it work outside odoo server. In website_livechat, the web.session js namespace is redifined, and i'm still not sure this is a good idea 2015-09-01 21:04:33 +02:00
Jérome Maes 132e96accb [IMP] im_livechat : refactoring + improving performance by removing rpc call 2015-09-01 20:58:11 +02:00
Jérome Maes 95b97d1010 [REF] im_livechat : refactoring, make it compatbile with the nw mail module, change reporting sql view (split them in 2), adapt view, ... 2015-09-01 20:16:09 +02:00
Jérome Maes 1d54858cbd [MOV] im_livechat : restructure the module according to the new mail module 2015-09-01 20:16:09 +02:00
qsm-odoo 2a3f359ae8 [REF] * : Remove oe_left of oe_title & oe_avatar
LESS rules (enterprise compatibility) :
* .oe_avatar is float:left by default
* .oe_title is placed between oe_avatar/oe_button_box if any
without the need to make it float
2015-08-21 14:31:11 +02:00
qsm-odoo 916187e0fb [FIX] web_kanban + others: kanban record two columns layout
* Remove use of flex for kanban record layout (text overflow ellipsis
could not work in row wrap flex layout as flex would prefer to wrap its
elements than add an ellipsis inside its content)
* Fix xml templates (double use of o_kanban_image + non-existing class)
2015-08-20 15:26:03 +02:00