-
-
Notifications
You must be signed in to change notification settings - Fork 618
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_activity_board] Add new module that insert activities board in boards. #283
Conversation
mail_activity_board/README.rst
Outdated
Activities Board | ||
================ | ||
|
||
This module adds an activity board with form, tree, kanban, calendar, pivot, graph and search views. |
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.
Move this paragraph to readme/DESCRIPTION.rst
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.
I have added the readme folder with the file DESCRIPTION.rst
mail_activity_board/README.rst
Outdated
============= | ||
|
||
|
||
Install it from APPs. |
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 implicit, remove it 🔥
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.
Removed
mail_activity_board/README.rst
Outdated
From this smartButton is linked to the activity board, to the view tree, | ||
which shows the activities related to the opportunity. | ||
|
||
From the form view of the activity you can navigate to the origin of the activity. |
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.
Move to readm/USAGE.rst
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.
I have added the readme folder with the file USAGE.rst
mail_activity_board/README.rst
Outdated
* SDI <http://www.sdi.es> | ||
|
||
* David Juaneda Ayensa <djuaneda@sdi.es> | ||
* Javier Garcia <jgarcia@sdi.es> |
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.
Move to readme/CONTRIBUTORS.rst
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.
I have added the readme folder with the file CONTRIBUTORS.rst
mail_activity_board/__init__.py
Outdated
@@ -0,0 +1,5 @@ | |||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | |||
# SDI | |||
# author: djuaneda@sdi.es |
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.
I'd remove authors from such a tiny file.
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.
I deleted all comments in the _init_.py files.
<separator/> | ||
</xpath> | ||
|
||
<xpath expr='//search/group' position='inside'> |
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.
It would be geat to have a groupby for past, today and future activities (I'm not sure if it exists already)
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.
There are filters for late, today and future activities but if you think it might be interesting to add the groups, it's not hard for me to do it.
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.
It should be enough then, thanks 😉
--> | ||
|
||
<record model="ir.actions.act_window" id="open_boards_activities_form_tree"> | ||
<field name="name">ACTIVITIES</field> |
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.
DO NOT CRY 😆
"Activities"
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.
I will try to overcome it
<field name="name">ACTIVITIES</field> | ||
<field name="res_model">mail.activity</field> | ||
<field name="view_type">form</field> | ||
<field name="view_mode">tree,form</field> |
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.
I think it's better to default to the kanban view.
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.
I've already modified it.
<field name="name">Boards: My Activities</field> | ||
<field name="model_id" ref="model_mail_activity"/> | ||
<field name="state">code</field> | ||
<field name="code">action = model.action_your_activities()</field> |
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.
I think it's generally better the other way around: declare the activity in XML and then load it from code if ever needed (you'll find most times you don't need it).
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.
I've already corrected it.
@@ -14,7 +14,7 @@ | |||
<form string="Activity Form" create="false" edit="false" delete="false"> | |||
<sheet string="Activity"> | |||
<button name="open_origin" type="object" class="centre oe_link" nolabel="1"> | |||
<field name="res_name"><field name="res_model_id_name"/></field> | |||
<h1><field name="res_name"/></h1> |
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.
Similar to the titles of other forms.
@gurneyalex @yajo I have managed to pass the tests of travis but I fail to run on runbot. |
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_activity_board/__manifest__.py
Outdated
'license': 'GPL-3', | ||
'version': '11.0.1.0.0', | ||
'development_status': 'Beta', | ||
'category': 'Uncategorized', |
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.
Social Network was a good category IMHO.
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.
Changed it.
default="", related='res_model_id.name', | ||
string="Origin", store=False, readonly=True) | ||
related='res_model_id.name', string="Origin", | ||
store=False, default="", readonly=True) |
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.
store=False
is the default, you can remove it.
Also, default=""
can lead to confusing behavior, because in Odoo, the standard is that empty fields return False
always. Having ""
instead of False
is unconsistent, so please remove that too.
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.
Deleted store=False.
Deleted default="".
string="Duration", store=False, readonly=True) | ||
calendar_event_id_start = fields.Datetime( | ||
default=False, related='calendar_event_id.start', | ||
related='calendar_event_id.duration', string="Duration", | ||
store=False, readonly=True) |
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.
Most likely, with related='calendar_event_id.duration', readonly=True
it should be the same, because all other attributes are inherited from the related field itself.
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.
I have tried to leave the field with only "related" and "readonly" attributes and it has behaved as you have indicated, so I have changed it.
store=False, readonly=True) | ||
calendar_event_id_start = fields.Datetime( | ||
related='calendar_event_id.start', string="Start", | ||
store=False, default=False, readonly=True) |
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.
Same here.
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.
Me too.
store=False, readonly=True) | ||
calendar_event_id_start = fields.Datetime( | ||
related='calendar_event_id.start', string="Start", | ||
store=False, default=False, readonly=True) | ||
calendar_event_id_partner_ids = fields.Many2many( | ||
related='calendar_event_id.partner_ids', string='Attendees', | ||
store=False, default=False, readonly=True) |
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.
Same here
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.
Me too.
<t t-extend="mail.Chatter.Buttons"> | ||
<t t-jquery="button.o_chatter_button_schedule_activity" t-operation="after"> | ||
<button t-if="schedule_activity_btn" class="btn btn-sm btn-link o_chatter_button_count_activity" title=" activity"> | ||
<i class="fa fa-list"/> <t t-if="isMobile">Activities</t><t t-else="">Activities</t> |
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.
Why the if?
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.
copy & paste
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.
I already removed it.
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.
Finally I have left it:
<t t-if = "isMobile"> List </ t> Activities list </ t>
because it shows a different legend if 'isMobile' or not.
|
||
<div class="o_kanban_record_bottom"> | ||
<div class="oe_kanban_bottom_left"> | ||
<t t-if="record.date_deadline.raw_value and record.date_deadline.raw_value lt (new Date())"> |
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.
lt
?
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.
If record.date_deadline
and
its value is previous previous to today
add the class "text-danger".
Is it badly used?
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.
There's still this. lt
is nothing. Did you mean to use <
? Also, I think you're comparing a String
with a Date
, which will very likely produce false positives (not sure, just guessing...)
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.
Answering to #283 (comment) here to avoid losing context.
The fact that you copy-pasted code doesn't mean you copied good code. 😜
Normally, codecov won't detect this, because the qweb view you write in a kanban is actually a client-side (JS) qweb one. This means that it's not executed when installing, but when you browse it.
See this screenshot from Firefox JS console, where you can see that you're producing a syntax error, and a false positive:
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.
@yajo I think it is ready.
The field 'date_deadline' in the class 'mail.activity' is required, so I have removed the check if it is empty.
<field name="date_deadline"/> | ||
</span> | ||
</t> | ||
<t t-if="record.activity_category.raw_value=='meeting'"> |
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.
Can't you use t-else
?
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.
No problem.
<field name="date_deadline"/> | ||
</span> | ||
</t> | ||
<t t-if="record.activity_category.raw_value=='meeting'"> |
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.
t-else
?
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.
Oh, yeah!
<separator/> | ||
</xpath> | ||
|
||
<xpath expr='//search/group' position='inside'> |
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.
It should be enough then, thanks 😉
Runbot seems not available? |
If you check runbot status, it is "orange" which means that there are some warnings in the logs. Checking the logs show:
|
<field name="name">mail.activity.boards.view.tree</field> | ||
<field name="model">mail.activity</field> | ||
<field name="inherit_id" ref="mail.mail_activity_view_tree"/> | ||
<field name="domain">[]</field> |
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 line is causing the build failure on runbot
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.
Thank you for answering the question.
<field name="name">mail.activity.boards.view.kanban</field> | ||
<field name="model">mail.activity</field> | ||
<field name="priority" eval="10"/> | ||
<field name="context">{}</field> |
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 line is causing a red bulid on runbot
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.
Thanks again.
Fix runbot:
|
Hi @yajo. |
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.
You need to simplify that JS, friend 😉
related='calendar_event_id.partner_ids', string='Attendees', | ||
default=False, readonly=True) | ||
related='calendar_event_id.partner_ids', | ||
Stringreadonly=True) |
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.
Oops, wrong parameter.
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.
OMG 😧
} else if (count === 1){ | ||
str = _t('One activity'); | ||
} else { | ||
str = ''+count+' '+_t('activities'); |
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 method makes sense in your language and some others, but did you know that Russian has different plurals, depending on if the number ends by 2-4 or by other number? And of course, they have singular too. And it's not a corner case. You likely don't want this kind of methods that return different strings depending on the number. Gettext itself should handle that, and if it doesn't, it's upstream's problem (and also I don't think it will affect you, since your language follows the same rules as English).
It's much simpler to be dumber and just do:
return _.str.sprintf(_t("%d activities"));
... which wouldn't be so extremely bad if rendered as 1 activities. You can even translate that into Spanish as %d actividad/es, which is perfectly OK.
This also should make you realize that using a method just for this is not much needed. You can just do that call inline and it should be OK.
In any case, this is being used just to add a title
attribute to the button, but we can simply hardcode a more useful title and forget about all of this; so, just remove this whole _formatActivitiesList
method please.
I'm just trying to give you a bigger picture about how translations work (or should work), so you can remove all this complexities from your mind (and code!). 😉
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.
Thanks for advice.
When I don't know how to make something I use to find in ODOO folder a piece of code similar to I want to do and copy it.
I found in followers.js something similar:
_formatFollowers: function (count){
var str = '';
if (count <= 0) {
str = _t('No follower');
} else if (count === 1){
str = _t('One follower');
} else {
str = ''+count+' '+_t('followers');
}
return str;
}
In next times I'll try to be more efficient and follow your wise advice.
I 🔥 it already
<t t-extend="mail.Chatter.Buttons"> | ||
<t t-jquery="button.o_chatter_button_schedule_activity" t-operation="after"> | ||
<button t-if="schedule_activity_btn" class="btn btn-sm btn-link o_chatter_button_list_activity"> | ||
<span class="o_list_activity label label-primary"/> <t t-if="isMobile">List</t><t t-else="">Activities list</t> |
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.
Some points here:
-
If you need to display something depending on screen size, it's better to do it this way by pure bootstrap CSS:
<span class="hidden-xs">Activities list</span> <span class="visible-xs-inline">Activities</span>
The less JS and the more CSS you use, the faster everything is. However...
-
... KISS; just use "Activities". The "list" word here adds nothing useful really.
-
Additions should be done here, and not above in the
_render()
method; however, it's true that will only be possible after [IMP] web: Expose chatter widget to render buttons odoo/odoo#25801 is merged.
So, it should end up being similar to this, as of today:
<button t-if="schedule_activity_btn" class="btn btn-sm btn-link o_chatter_button_list_activity" title="See activities list" type="button">
Activities
</button>
Once odoo/odoo#25801 is merged, if ever, it could become this:
<button t-if="schedule_activity_btn" class="btn btn-sm btn-link o_chatter_button_list_activity" title="See activities list" type="button">
+ <span class="o_list_activity label label-primary">
+ <t t-esc="widget.fields.activity.activities.length"/>
+ </span>
Activities
</button>
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.
As I have already mentioned to you, when I have to do something, I try to look at how it is done in another part of the code and imitate it.
I thought that instead of using an icon, I could use the number of activities for it, in the style of followers and the number of activities when the list of activities is minimized.
What a pity
😔
if (self.fields.activity) { | ||
self.$('.o_list_activity') | ||
.html(self.fields.activity.activities.length) | ||
.parent().attr("title", self._formatActivitiesList(self.fields.activity.activities.length)); |
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.
I see that you're duplicating almost all of upstream method just to add these 2 lines, breaking the call chain. Sorry, but that shouldn't be done. 🚫
You have 3 options:
- Override the
start()
method, call its_super()
, and, once done, make the changes intothis.$topbar
, which is there rendered synchronously. All of this deferred rendering of fields has no relation with what you're modifying, which is actually the buttons bar, not the fields themselves. - Vote for [IMP] web: Expose chatter widget to render buttons odoo/odoo#25801 to be merged, and just do all overrides directly in Qweb, as explained below.
- Simply show static buttons. That can be done through Qweb only, and wouldn't need [IMP] web: Expose chatter widget to render buttons odoo/odoo#25801 to be merged. I recommend this approach, at least for now; see below.
Remove this _render()
method in any case.
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.
I removed _render().
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.
But I wrote down option 1. I'm stubborn.
}), | ||
|
||
_onListActivity: function (event) { | ||
event.preventDefault(); |
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.
Not needed if you add type="button"
to the button. Remove and see comments below.
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.
You mean only the line:
event.preventDefault();
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.
Much better, getting closer 😉
|
||
<div class="o_kanban_record_bottom"> | ||
<div class="oe_kanban_bottom_left"> | ||
<t t-if="record.date_deadline.raw_value and record.date_deadline.raw_value lt (new Date())"> |
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.
There's still this. lt
is nothing. Did you mean to use <
? Also, I think you're comparing a String
with a Date
, which will very likely produce false positives (not sure, just guessing...)
@yajo I have added a change to the form view on the activity board for those that are meeting type. Check them out to see what you think. |
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.
Tested on runbot and functionally looks great! 👍
Thanks!
@lreficent Thaks you! |
@yajo Why not just upload the PR to Social? Is something missing to be done so that it can be uploaded to the repository? |
Sorry I just forgot this one. Merging. |
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (OCA#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
Syncing from upstream OCA/social (11.0)
…d in boards. (#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA/social#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA/social#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
…d in boards. (#283) * [ADD] Module that insert activities board. * [FIX] Author error in __manifest__ file and style changes. * [FIX] Fix replace in view, rename files and style changes. * [FIX] Enumerated list ends without a blank line; unexpected unindent. * [FIX] Name fail. * [FIX] Bug in view. * [FIX] Add button Activities in mail.thread and readme folder. Others improvements in style of code. * [FIX] Type 'tree' not found in registry: problem solved. * [FIX] Dependence change: 'mail' for 'calendar'. * [FIX] Eliminated unnecessary imports. * [FIX] Bugs about js and if/else. * [FIX] Improvements following guide lines and eliminating unnecessary attributes in views. * [ADD] Added counter in the 'Activities List' button. * [FIX] Bugs in javascript with 'Activities' button. * [ADD] Tests folder. * [FIX] Deleted references to modules not installed. * [FIX] Formatting javascript. * [FIX] Bug: added a soft line before a class. * [FIX] Bug: OCA/social#283 (comment) * [FIX] Escaping 'lt' in xml file. Bug: OCA/social#283 (comment) * [FIX] The meeting attendees are shown in kanban mode on the meeting board. * [FIX] Hide in form view of the activity board the assistant field if the activity is not a meeting type or if there are no assistants. * [FIX] Change to default kanban view for partners.
This module installs the Document module and generates a board with the form, tree, kanban, graph, pivot and calendar views.
It allows to manage all the activities from the same place even though their origin is of different types of objects.
The form view shows a few data of the activity, but it allows to navigate to the object with which it is related.
In the form view of the related object, in the chatter a button has been added that links to the activity board in which the activities of that object are shown.