Commit Graph
100354 Commits
Author SHA1 Message Date
qsm-odoo 5a76586ede [IMP] web,point_of_sale: debug mode
Keep debug mode status when going on another location url (backend,
frontend, pos, ...).
2016-01-15 15:24:09 +01:00
Christophe Matthieu b9768c7022 [FIX] hr_holidays: show leave tag on employee kanban view
issue: the current leave is not display in kanban view.
_get_leave_status select the leave only if the leave finish after the end of the current day.

opw-666453
2016-01-15 14:43:59 +01:00
Martin Trigaux fba324fe5e [FIX] web: untranslatable string in FieldCharDomain 2016-01-15 14:31:27 +01:00
Denis Ledoux d54644fcd4 [FIX] mass_mailing: set theme without changing template content
When opening a mail template,
and choosing a theme,
then directly saving, without changing anything within the template,
the chosen template wasn't saved in the template.

Therefore, when re-editing the same template, the theme selection
re-appeared, while you had already chosen in the previous steps.

opw-665537
2016-01-15 13:31:31 +01:00
Aaron Bohy e5e31a0519 [FIX] mail: heart emoji not correctly replaced
Fixes #10445
2016-01-15 13:18:13 +01:00
Aaron Bohy 7e3c6bd366 [FIX] mail: composer: emojis not displayed in basic composer
Two composers are appended to the client action: a basic composer and an
extended one used in mass mailing channels. Emojis are rendered in a container,
and when the user clicks on the emojis button, this container is shown.

The problem came from the fact that this container has the same classname in
both composers, so for both composers, the emojis were rendered in the same
container, producing an empty container for one of the two composers
(in this case, the basic one).
2016-01-15 13:18:13 +01:00
Aaron Bohy 617968c61b [FIX] mail: don't mark as unread messages we wrote
in the client action (bold channel name in the sidebar)
in chat windows (number of unread messages written in header)
2016-01-15 13:18:13 +01:00
Martin Trigaux 4dd7187a7a [FIX] mail: translated mailing_model
_mail_mass_mailing attribute is evaluated at server launch (with no context) so
the attribute is never translated.
Create a new method in mail_thread to translate again the term at evaluation but
with a correct context.
Thanks to the _(...) in the attribute definition, the proper term is exported
and present in .pot file.
2016-01-15 12:00:42 +01:00
Martin Trigaux e610971ed3 [I18N] account_assets,hr: missing terms 2016-01-15 12:00:42 +01:00
Goffin Simon 754d3b608d [FIX] product: volume field in product.template.common.form
The 'volume' field was deleted from product.template.common.form with
this commit af9d21b

opw:666663
2016-01-15 09:54:40 +01:00
Alexandre Fayolle 67ab5b776c [FIX] all: Lucica -> Lucida
Has been changed at d8e5cdec in the source but wasn't in the translations.
Replace also is .po files combined with a tx push to be able to add the new one.

Closes #10461
2016-01-15 09:06:34 +01:00
Odoo Translation Bot c7b01fea24 [I18N] Update translation terms from Transifex 2016-01-15 08:54:52 +01:00
Denis Ledoux 698c0c557d [FIX] website_sale: default pricelist
The default pricelist set for visitors
in the ecommerce must be part of the available
pricelists (available according to the country)

The pricelist of the public user may
not amongs the available pricelists.

opw-665536
2016-01-14 16:20:32 +01:00
Christophe Matthieu 6e1ed6c8bb [FIX] web_editor: paste simple text must wrap first line by p and remove unless font 2016-01-14 15:21:39 +01:00
Christophe Matthieu aad21cd555 [FIX] mail: open livechat link in the body message with target="_blank"
opw-666733
2016-01-14 15:02:38 +01:00
Aaron Bohy c304e2ce95 [FIX] im_livechat: chat_window: scrollBottom() and feedback
The function scrollBottom has been removed at rev. 30c26d7 as the scroll logic
has been moved to the thread, to make it common for the client action and chat
windows.

Moreover, the o_chat_content div has been removed from the chat window layout
at the same commit, we thus now directly replace the thread's $el by the
feedback and fix less rules

Also adapt the behavior of the livechat's chat window as done for the backend
at 30c26d7:
  - scroll to bottom on message sent
  - increment unread messages counter if the chat window is folded or if the
    thread is not scrolled to bottom
  - reset the unread counter on scroll to bottom)
2016-01-14 14:49:58 +01:00
Christophe Matthieu faa7c750b2 [FIX] web_editor: change height for html field in readonly mode
issue: breaks the preview form views
opw-660810
2016-01-14 14:39:00 +01:00
Cedric Snauwaert 91ac0a9d04 [FIX] account: when unreconciling a payment from a paid invoice, invoice should return to state open
This is done by changing the value of reconcile field on account_invoice which will trigger workflow
2016-01-14 14:20:41 +01:00
Martin Trigaux b3c20265d5 [FIX] mail: .pot changes missing at 94920b4
REDRUM REDRUM REDRUM
2016-01-14 14:13:55 +01:00
qsm-odoo 7a6223b2b0 [FIX] web_kanban: o_kanban_mobile breaking group buttons
The less rules of the o_kanban_mobile class shoud only be applied
inside an .o_kanban_record (otherwise the span group buttons are
broken).

See 49b938a0f1.
2016-01-14 14:07:44 +01:00
Goffin Simon 5adb4d1d02 [FIX] account: get_journal_dashboard_datas
In multi currencies, the different invoices linked to a journal can
be in different currencies, this is why the amount_total of each invoice
must be summed in the same currency.

opw:666311
2016-01-14 13:40:34 +01:00
Christophe Matthieu 81a23a3baa [FIX] website_forum_doc: wrap content with <div id="wrap">
Issue: enterprise design don't apply the style because missing id="wrap"
2016-01-14 13:10:06 +01:00
Géry Debongnie 30c26d7654 [IMP] mail: various UI improvements
- don't add 'New message from' in the title of notifications when an
  author name is defined
- use a simple O icon instead of the full Odoo logo when a notification
  is natively displayed
- don't scroll to bottom if the thread is not already at bottom
- don't mark a channel read if thread is not at the bottom
- add # in front of channel name in chat windows and in invite dialog
- accept anonymous names in channel (for ex, livechat channels)
- always go to the next line with shift+enter
- always send message with ctrl+enter
- pressing enter sends message or go to next line depending of context
- don't allow to detach mass mailing channels
2016-01-14 11:22:26 +01:00
Aaron Bohy 8397abd871 [IMP] mail: make chat windows somehow usable in mobile 2016-01-14 11:22:26 +01:00
Aaron Bohy 54396cfa41 [FIX] im_livechat,mail: don't automatically detach chat channels
This reverts commit a8239cd as the navbar dropdown recently introduced now
offers a quick access to channels without coming back in the Discuss App.

Moreover, this commit emphasizes the notifications navbar icon when there are
unread messages (or at least, it mutes it when there isn't).
2016-01-14 11:22:26 +01:00
Aaron Bohy 916d90af35 [IMP] mail: open dm shortcut from in navbar dropdown
Allows to directly open a dm channel from a chat window, without coming back
to Discuss.
2016-01-14 11:22:26 +01:00
Aaron Bohy b3868a613c [IMP] mail: needaction/unread messages counters
Some UI changes:
  - Unread messages in chat are now displayed as needactions in the Discuss's
sidebar (badge with counter of unread messages, instead of simply bolding the
channel name).
  - The counter displayed in the navbar is now the sum of needactions and total
of unread messages in chat.
  - The counter displayed next to Inbox is still the needaction counter.

For consistency between tabs/browsers/devices, the channel_seen info is now
broadcasted, meaning that every tab/browser/device will be noticed.

Also now correctly increment the unread counter of a channel if the received
message is a needaction.
2016-01-14 11:22:25 +01:00
Aaron Bohy d93231afe2 [IMP] mail: navbar: messaging menu
The navbar notification is now a dropdown containing a preview of all pinned
channels (except Inbox and Starred), channels with unread messages being on the
top.

It allows to quickly detach a channel without going back to Discuss.

The channels preview fetching is performed only once, and it is done in
background without blocking the whole UI (using shadow option or session.rpc()).

Also fixes a synchronization problem between server and client about the folded
state of channels (the info wasn't stored client side, so it produced weird
situations, e.g. unfolding a channel didn't actually unfold it).
2016-01-14 11:22:25 +01:00
Aaron Bohy 0301735354 [IMP] mail: move 'New message' button from navbar to Inbox 2016-01-14 11:22:25 +01:00
Aaron Bohy 18fccd9d6c [IMP] mail: put chat windows in a dropdown in case of overflow
Former algorithm to display chat windows was pretty basic: each window was
positionned 5 pixels to the left of the previous one, starting from the bottom
right corner of the screen. Thus, when there were too many chat windows to fit
in the screen, they overflowed to the left.

This rev. handles this case by hidding overflowing chat windows and making them
available in a dropdown positionned 5 pixels to the left of the last visible
chat window.
2016-01-14 11:22:25 +01:00
Aaron Bohy 37238d343a [FIX] mail: notifications: strip html tags
but keep jumps to line
2016-01-14 11:22:25 +01:00
Aaron Bohy 029c0d5567 [FIX] web: utils: backport of swap() for enterprise compatibility 2016-01-14 11:22:25 +01:00
Nicolas Lempereur 5c50ba322f [FIX] web_editor: title tag with translation
b24d759 changed the wrapping translation span tags, this commit take it
into account for the "translation" title tag.
2016-01-14 11:20:00 +01:00
Denis Ledoux 94920b43c9 [FIX] *: typo Important Messages -> Unread Messages
While this is important to read the replies
you get in the threads you follow, `Unread messages`
is more accurate to describe what these filters
displays.

opw-666739
2016-01-14 10:48:37 +01:00
Goffin Simon 60be34c3ee [FIX] account: _prepare_analytic_line
The field "amount" in 'account.analytic.line' must be in the currency
of the 'account.move.line' record because the "currency_id" field is over
written in "addons/account/models/account_analytic_line.py" and
this field is related to the currency of the move linked to the
analytic line.

opw:666538
2016-01-14 09:40:08 +01:00
Ajay Javiya 6006c0d72a [FIX] on website sale checkout once create address and confirm order , after that if user change it to ship to same address still ship address is set previousely create address 2016-01-13 19:34:36 +01:00
Martin Trigaux 3be9d911c0 [FIX] mass_mailing: translated stage in kanban view
Missing _ in read_group call
2016-01-13 16:49:00 +01:00
Nicolas Lempereur 060cff9be3 [FIX] web_editor: get unlink button working
f3f7bd9 improved some link editing behaviour by adding contenteditable
attribute on it.

But if contenteditable is set on a link, using command "unlink" on the
element for `document.execCommand` does not work.

Hence this commit adds a code so the first click outside the link remove
contenteditable.

closes #10436

second-part-of: opw-659772
2016-01-13 16:28:29 +01:00
Denis Ledoux d26c85dc0a [FIX] hr_expense: mark paid on reconciliation, precision
When comparing floats, `float_compare` must always
be used to avoid precision issues.

e.g., percentages like 1.0000000000000002
must be considered as equal to 1.

opw-666459
2016-01-13 16:10:09 +01:00
Christophe Matthieu 10efb0621f [FIX] website: editor: enable/disable save/undo/redo button when resize snippet 2016-01-13 16:05:22 +01:00
Nicolas Martinelli a6badd2559 Revert "[FIX] product: sort pricelist items by sequence"
This reverts commit 98e5673c90.

Sequence should not be taken into account since the default order is
clear enough for the user.
2016-01-13 16:02:51 +01:00
Martin Trigaux ce2d94207b [FIX] mail,web: : untranslated term in view
_t(...) in xml qweb views do not work, not exported, not evaluted.
No reason to use t-att-*, just using simple attribute is enough.
2016-01-13 15:48:09 +01:00
qsm-odoo dbd0255228 [FIX] website_theme_install: language dependant code
The module did only work in english because the themes were found
amongst the applications thanks to their categorie names.

Solution is to search categories thanks to their xml_id :
base.module_category_theme or base.module_category_theme_...
and not
base.module_category_hidden or base.module_category_theme_hidden
2016-01-13 15:10:02 +01:00
Martin Trigaux bb56e484b7 [FIX] all: construction of translations lookup
When evaluated, the translation function never finds a match if a variable is
integrated into the untranslated text.

SHAME! 🔔 🙋
2016-01-13 14:46:30 +01:00
Martin Trigaux 2ace8f0270 [FIX] forum: duplicated method
Identical method, written another way.
Properly check the translated error.
2016-01-13 13:48:03 +01:00
Martin Trigaux c287d38f5f [FIX] ...: untranslated selection
When using a method returning the list of selections, the labels needs to be
translated with a _ call
2016-01-13 12:13:46 +01:00
Martin Trigaux 780b36abe9 [FIX] hr_timesheet_sheet: missing terms
Action act_hr_timesheet_sheet_my_timesheets was not translated
2016-01-13 11:42:16 +01:00
Martin Trigaux f962f0ecc4 [FIX] stock: missing terms
Added a related field.
2016-01-13 11:15:53 +01:00
Christophe Matthieu 17424bd4c8 [FIX] web: reload view on fail after write/create with action button
Issue:
Invoicing -> Vendor bills
Create a record with reference=0 -> Register Payment
Create a second record with reference=0, at least one line with at least one tax -> Save
Edit -> change quantity in the line -> Register Payment -> the register fail
change the quantity again and change reference=1 -> Register Payment
The taxes is include twice
2016-01-13 11:09:54 +01:00
Thibault Delavallée fd57dd5713 [IMP] mail: chatter: hide notification buttons
Using some templates it is possible to have odoo buttons directly in the
mail_message body. Hide them in the chatter as this is more noisy than
usefull.
2016-01-13 10:34:09 +01:00