Commit Graph
4466 Commits
Author SHA1 Message Date
Raphael Collet 5a6e136172 [IMP] addons: adapt binary fields to store images in attachments 2015-09-28 15:19:47 +02:00
Leonardo Rochael Almeida 60af7cac02 [IMP] replace simplejson with stdlib json
The stdlib version of the json library is more recent than the 3.5.3
version we are pinning in `requirements.txt`

There is no reason to use it.

Closes #6940
2015-09-28 10:53:32 +02:00
Odoo Translation Bot 3dec9e5804 [I18N] Update translation terms from Transifex 2015-09-27 03:07:16 +02:00
Thibault Delavallée 42d015f2b0 [IMP] mail: tracking values in mail message view 2015-09-25 13:30:07 +02:00
Thibault Delavallée 486aab5098 [FIX][BACK FROM TRASH] mail: chatter: read more / read less
Read more / less feature is back (and probably ugly). It has probably been
removed when refactoring the old chatter.

[FIX] tools: html shortening: encoding issue
2015-09-24 16:20:53 +02:00
Jérome Maes 59f04dc364 [FIX] mail : '@' mention appears twice when selecting with clicking ENTER.
UP and DOWN (keydown event) move the cursor position at begining and end of the input text value. ENTER keypress event add 1 to the cursor position. So these events are now 'preventDefault'.
2015-09-23 14:35:43 +02:00
Christophe Simonis 57168a9e90 [MERGE] forward port of branch saas-6 up to a669433 2015-09-23 14:34:26 +02:00
Damien Bouvy b3f3f96359 [IMP] mail: ir_attachment kanban improvement
When displaying ir_attachments, show a preview if it is an image; show the icon otherwise
Clicking on the icon/preview should trigger a download
+ Typo correction
2015-09-23 13:28:54 +02:00
Yannick Tivisse be2a911c67 [IMP] Rename 'Chat' application into 'Discuss' 2015-09-23 11:35:02 +02:00
Thibault Delavallée 396c5db41a [FIX] mail, various: buttons in notifications
Various fixes :
- new button (task / issue / note) param name + correct action
- method button fix
2015-09-22 10:28:01 +02:00
Thibault Delavallée a852218759 [FIX] mail: slack: log a note with internal subtype
The subtype id was not correctly computed, leading to all subtypes being notes. This
make the activites feature of CRM crash.
2015-09-22 10:28:01 +02:00
Denis Ledoux a3648fd23a [MERGE] forward port of branch 8.0 up to aabbdc7 2015-09-21 16:01:58 +02:00
Adrien Peiffer (ACSONE) 0b4bd7a6d1 [FIX] mail: allow to delete mail alias all employees
It was allowed for all employees to read, create and edit
mail aliases. Only the deletion was prevented.
Nevertheless, giving the possibility to rename a mail alias
is allmost seen as a deletion, as you can rename it to something
that just won't be used anymore. Therefore, we can consider
to give any employees the rights to delete mail aliases.

Besides, not allowing the unlink leads to issues when the
mail alias is associated to a record the user wants to delete.
He was able to create the record, and its mail aliases, but
he could not remove the record, as he was not allowed to remove
the mail alias.
For instance, an HR officer was able to create a job position,
with its mail alias, but couldn't remove the job position he created.

Closes #8466
2015-09-21 14:26:37 +02:00
Thibault Delavallée 5492f88126 [FIX] mail: mail_message write right
Notified people should be able to write on the message, for example to be
able to star / unstar, needactionize / unneedactionize (nice word).
2015-09-21 12:44:40 +02:00
Odoo Translation Bot b85dd39814 [I18N] Update translation terms from Transifex 2015-09-20 03:04:41 +02:00
Jérome Maes ba0d2060f8 [FIX] mail : suggested partner check on chatter composer.
Embedded the template core in a 'root widget tag' to make the selector 'this.$('.o_mail_chatter_compose_message_suggested_partners input:checked')'  works.
2015-09-18 11:50:40 +02:00
Jérome Maes 83f15283bf [FIX] mail : fix needaction generation
When creating a document a message is posted (ex: 'document created') and the track field users are auto added as follower and notified with the last posted message (like the just create message). So the author was notify of the creation of its own document.

The problem did not appears using form view, beacause when the mail.message were reloaded, the thread was mark as read, so the partner (author/creator) was directly removed from the needaction_partner_ids field. The issue happen when loading the demo data, generating many needaction for the admin user (creator of most of the document).

This bugfix remove the current partner from the new follower to subscribe and to notify with the last posted message, as done when a message is posted (in _notify method of mail.message).
2015-09-18 11:50:29 +02:00
Martin Trigaux 387ff476dc [I18N] all: reexport translatable source terms 2015-09-18 10:40:52 +02:00
Martin Trigaux 38026134b1 [IMP] mail: better field label
Needaction is definitely too technical
2015-09-17 17:26:16 +02:00
Olivier Dony 493ea0256d [FIX] mail: no needaction counter if request user has no partner
This is a temporary fix while tracking down the
root cause for the missing partner_id.
2015-09-15 13:36:37 +02:00
Martin Trigaux 1348fee217 [I18N] all: regenerate .pot and pull .po
How great is it to get Odoo (almost) 9.0 (almost) translated?

Clean .tx/config file
Regenerate .pot files
Fetch current translations from Transifex (10% completion)
2015-09-14 17:53:37 +02:00
Jérome Maes 1d56ea0f6f [FIX] mail : when create a channel, give it the channel_last_seen_partner_ids to direct make the creator a member and avoid access right exception 2015-09-14 10:16:32 +02:00
Jérome Maes 762cc2dbfa [FIX] mail : make follower subtype edition works
On follower list of a document, the user can (if access rights granted) edit the subtype subscription of other follower. This open a modal with checkboxes. This is commit make this feature works and adapt it to channel follower.
2015-09-14 10:16:21 +02:00
Odoo Translation Bot 7ed58916df [I18N] Update translation terms from Transifex 2015-09-13 01:55:09 +02:00
Christophe Matthieu a4f041ed45 [FIX] mail: display attachment preview 2015-09-11 11:07:07 +02:00
Christophe Matthieu 0300e0b7ba [FIX] mail: onchange_template_id return a valid command of commands
Use convert_to_cache and convert_to_read to format onchange values.
Fix: default value can be a command list, the onchange convert the comand list into a wrong comand list of command list.
2015-09-11 11:07:07 +02:00
Martin Trigaux 087f8bed48 [FIX] correct some English mistakes
Missing spaces, typos, rephrase unclear text
Courtesy of Eric Geens
2015-09-10 12:22:17 +02:00
Nicolas Martinelli a6d773773d [FIX] mail: empty notes and field monetary
We prevent the creation of empty notes and add the field monetary in the
list of accepted fields.
2015-09-10 10:09:58 +02:00
Christophe Simonis 5e1eb5f34c [IMP] mail: avoid followers with dissociative identity disorder 2015-09-09 15:38:12 +02:00
Odoo Translation Bot 101540b491 [I18N] Update translation terms from Transifex
Fetch the translations with the option --all to fetch missing languages
and use --minimum-perc 10 to avoid empty files

Fixes #8423
2015-09-08 17:07:59 +02:00
Yannick Tivisse 1c59ae181f [IMP] Add '@someone' explanation in channel helper. 2015-09-08 15:40:37 +02:00
Yannick Tivisse aedb75081b [IMP] mail: Set the compose message wrapper in odoo_blue color 2015-09-07 18:25:49 +02:00
Martin Trigaux 613286b0e8 [I18N] export application terms of all modules
Now that most refactoring has been merged

It is better to have red a great work of another culture in translation than never to have read it at all.
― Henry Gratton Doyle
2015-09-07 17:21:58 +02:00
Martin Trigaux f8daf6fb31 [I18N] synchronise Basque and Ecuador translations
They were new languages, needed a manual fetching.
Fixes #8363
2015-09-07 12:26:51 +02:00
Odoo Translation Bot 927c00525c [I18N] Update translation terms from Transifex 2015-09-06 01:50:52 +02:00
Foram Katharotiya 52d72e61de [MERGE] hr_expense: module rewritten for more easiness and a better usability. Concept of expense sheet removed. Was PR #7387. 2015-09-04 17:23:19 +02:00
Jérome Maes 4bdfa3b6ca [IMP] mail : invite follower wizard have 2 appearances
The wizard is the same object, but to add channel as follower, some fields was not required. Via the 'mail_invite_follower_channel_only' context key, the unrelevant fields are hidden.
2015-09-04 15:55:46 +02:00
Jérome Maes 7674536713 [IMP] mail : message_post_with_template helper
Create `message_post_with_template` helper method to factorize the simulation of a mail.compose.message wizard.

Also, fix the generated attachments of mail.compose.message wizard by returning ORM command (6, 0, ids) instead of the list of attachments ids. In order to standardize the behavior of the wizard, and since the ORM support command assignation in onchange api.v8, all the x2many fields of the wizard return a command.

FYI, that was tde's idea !
2015-09-04 15:55:38 +02:00
Fabien Pinckaers 3658a894bc [IMP] modules description, no external link 2015-09-04 11:59:55 +02:00
Christophe Matthieu 522fcacb21 [IMP] base: assets now directly use /web/content url 2015-09-03 19:31:00 +02:00
Aaron Bohy 2f125cd936 [FIX] mail: followers: correctly redirect to partner form view 2015-09-03 16:31:20 +02:00
Yannick Tivisse c42c752b04 [IMP] mail: Improve the mail.channel helper to be more convenient for end-users 2015-09-03 16:20:04 +02:00
Aaron Bohy c2f2a51831 [IMP] mail: load more messages: scrolling
- In the chat, when loading more messages, automatically scroll to the previous
oldest message instead of staying at the top;
- In the chat, don't use the event 'scrollTop < 50' to load more messages as
it won't work on mobile (all the webclient is scrolling, so the client action's
scrollTop will always be 0);
- Generalize the way to load more messages between chat and chatter by moving
the logic to the MailThreadMixin and creating a common template;
- Improve the style of this 'load more messages' button
2015-09-01 21:04:34 +02:00
Aaron Bohy d3df3268a9 [FIX] mail: partner invite dialog
Correctly send a notification on people invite
Also remove useless less rule
2015-09-01 21:04:34 +02:00
Jérome Maes f83f2d97d7 [FIX] mail: disable tests
mail.channel doesn't have the normal behavior of mail.thread,
but the test are based on mail.channel (which is thus a not so good idea).
res.partner is the other model available in mail module, implementing
 the correct behavior of mail.thread, but trigger AccessError. The tests
are commented from now, since TDE and I rewrite the test with a complete
 module dedicated to the test and implementing the expected behavior of a mail.thread.
2015-09-01 21:04:33 +02:00
Aaron Bohy d754c65c1d [FIX] mail: scroll to bottom on new message
only if the message arrived in the current channel
2015-09-01 21:04:33 +02:00
Aaron Bohy 9b14aa4648 [IMP] mail: mail_thread layout 2015-09-01 21:04:33 +02:00
Géry Debongnie 09b4893e12 [FIX] mail: prevent wrong sql query in some cases
Sometimes, the variable partner_id is False (on first connections).  This leads to a
crash because partner_id is a boolean instead of an integer. This commits simply
sidestep the problem.
2015-09-01 21:04:32 +02:00
Aaron Bohy ad39752093 [REF] mail: chatter: followers
Integration in the new design
DOM simplification
LESS refactoring
JS lint
Subtypes edition: fix edition in the modal and style it
2015-09-01 21:04:32 +02:00
Jérome Maes 223143bd97 [FIX] mail_channel, mail : various
mail_channel: call create with mail_create_nosubscribe=True to not subrscribe creator as follower,
since channel is not a mail thread (channel followers make no sense)

mail : adaptation with new chm controller for attachment, and remove author_ avatar from message format
2015-09-01 21:04:31 +02:00