-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
11.0 mail addons merge #235
Conversation
…annels 10.0 mail private add channels
10.0 mail to channels add
commit is created by 👷♂️ Merge Bot: https://odoo-devops.readthedocs.io/en/latest/git/github-merge-bot.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
└─ .travis.yml
4 installable modules are updated:
├─ mail_base/
| ├─ README.rst
| ├─ __init__.py
| ├─ __manifest__.py
| ├─ controllers/
| | └─ main.py
| ├─ doc/
| | └─ changelog.rst
| ├─ models.py
| └─ static/
| └─ lib/
| └─ base.js
├─ mail_multi_website/
| ├─ README.rst
| ├─ __manifest__.py
| ├─ doc/
| | └─ index.rst
| └─ static/
| └─ description/
| └─ index.html
├─ mail_private/
| ├─ __init__.py
| ├─ __manifest__.py
| ├─ doc/
| | └─ changelog.rst
| ├─ full_composer_wizard.xml
| ├─ i18n/
| | └─ mail_private.pot
| ├─ models.py
| ├─ static/
| | └─ src/
| | ├─ css/
| | | └─ mail_private.css
| | ├─ js/
| | | └─ mail_private.js
| | └─ xml/
| | └─ mail_private.xml
| ├─ template.xml
| └─ tests/
| ├─ __init__.py
| └─ test_js.py
└─ mail_to/
├─ __init__.py
├─ __manifest__.py
├─ doc/
| └─ changelog.rst
├─ i18n/
| └─ mail_to.pot
├─ models/
| ├─ __init__.py
| └─ mail_message.py
├─ static/
| └─ src/
| ├─ js/
| | ├─ mail_to.js
| | └─ test_mail_to.js
| └─ xml/
| └─ recipient.xml
├─ templates.xml
└─ tests/
├─ __init__.py
└─ test_default.py
Not installable modules remain unchanged.
sent by ✌️ Odoo Review Bot
759380a
to
e9e2bcb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mail_private: js file is changed and there is no record in the changelog and version is not changed
e9e2bcb
to
ddb1528
Compare
@@ -94,16 +98,72 @@ Chatter.include({ | |||
method: 'send_recepients_for_internal_message', | |||
args: [[], self.context.default_model, follower_ids_domain] | |||
}).then(function (res) { | |||
return _.filter(res, function (obj) { | |||
res['partners'] = _.filter(res['partners'], function (obj) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
['partners'] is better written in dot notation.
@@ -29,7 +30,8 @@ Chatter.include({ | |||
this.fetch_recipients_for_internal_message().then(function (data) { | |||
self._openComposer({ | |||
is_private: true, | |||
suggested_partners: data | |||
suggested_partners: data['partners'], | |||
suggested_channels: data['channels'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
['channels'] is better written in dot notation.
@@ -29,7 +30,8 @@ Chatter.include({ | |||
this.fetch_recipients_for_internal_message().then(function (data) { | |||
self._openComposer({ | |||
is_private: true, | |||
suggested_partners: data | |||
suggested_partners: data['partners'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
['partners'] is better written in dot notation.
}, | ||
|
||
get_internal_users_ids: function () { | ||
var ResUser = new Model('mail.compose.message'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Model' is not defined no-undef
return typeof channel !== 'undefined'; | ||
}); | ||
|
||
return new Model('mail.channel').call( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Model' is not defined no-undef
self.customer = thread[0].partner_id; | ||
|
||
// Fetch channels ids | ||
return new Model('mail.followers').call( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Model' is not defined no-undef
get_channels_for_internal_message: function () { | ||
var self = this; | ||
self.result = {}; | ||
return new Model(this.context.default_model).query( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Model' is not defined no-undef
@@ -94,16 +98,72 @@ Chatter.include({ | |||
method: 'send_recepients_for_internal_message', | |||
args: [[], self.context.default_model, follower_ids_domain] | |||
}).then(function (res) { | |||
return _.filter(res, function (obj) { | |||
res['partners'] = _.filter(res['partners'], function (obj) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
["partners"] is better written in dot notation dot-notation
@@ -29,7 +30,8 @@ Chatter.include({ | |||
this.fetch_recipients_for_internal_message().then(function (data) { | |||
self._openComposer({ | |||
is_private: true, | |||
suggested_partners: data | |||
suggested_partners: data['partners'], | |||
suggested_channels: data['channels'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
["channels"] is better written in dot notation dot-notation
@@ -29,7 +30,8 @@ Chatter.include({ | |||
this.fetch_recipients_for_internal_message().then(function (data) { | |||
self._openComposer({ | |||
is_private: true, | |||
suggested_partners: data | |||
suggested_partners: data['partners'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
["partners"] is better written in dot notation dot-notation
9087999
to
ef604da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing suspicious in the code
get_channels_for_internal_message: function () { | ||
var self = this; | ||
self.result = {}; | ||
return new Model(this.context.default_model).query( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is suspicious, obsolete function for v11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KolushovAlexandr Yep! You're right. I fixed it
ef604da
to
57a9758
Compare
`1.2.0` | ||
------- | ||
|
||
- **New**: added ability to select channels for private message sending. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 checked
@@ -1,3 +1,7 @@ | |||
`1.1.0` | |||
------- | |||
- **New**: added ability to select channels for private message sending. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 checked
`1.2.0` | ||
------- | ||
|
||
- **New**: added ability to select channels for private message sending. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 checked
`1.1.0` | ||
------- | ||
|
||
- **New**: channels are displayed in recipients |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 checked
mail_to/doc/changelog.rst
Outdated
`1.0.1` | ||
------- | ||
|
||
- **FIX:** The problem with duplicating the names of recipients was solved. | ||
- **FIX**: the problem with duplicating the names of recipients was solved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -> the. Предлагаю обратно
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо исправить замечания от hound-а. Других серьезных замечаний нет.
*.po и *.pot файлы можно не добавлять. Бот занимается этими файлами. Изменения по ним не много, поэтому некритично.
57a9758
to
fd6e85b
Compare
======== Testing test_flake8 ======== mail_private/models.py:62:9: F841 local variable 'group_user' is assigned to but never used |
fd6e85b
to
8a1aee2
Compare
8a1aee2
to
1914b4a
Compare
вливайте без меня |
I approve to merge it now |
Approved by @em230418
|
No description provided.