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

[mail] activity view 2.0 #29271

Open
wants to merge 20 commits into
base: master
from

Conversation

Projects
None yet
7 participants
@hbh-odoo
Copy link
Contributor

hbh-odoo commented Dec 5, 2018

Description of the issue/feature this PR addresses:

Task: https://www.odoo.com/web?#id=1894990&action=327&model=project.task&view_type=form&menu_id=4720
Pad: https://pad.odoo.com/p/r.1dd8ba667602fec09207492fea77c588

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@C3POdoo C3POdoo added the RD label Dec 5, 2018

@robodoo robodoo removed the CI 🤖 label Dec 6, 2018

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch Dec 6, 2018

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Dec 6, 2018

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch Dec 10, 2018

@robodoo robodoo added the CI 🤖 label Dec 10, 2018

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch Dec 11, 2018

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Dec 11, 2018

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch Dec 12, 2018

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Dec 12, 2018

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch Dec 12, 2018

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Dec 12, 2018

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch Dec 12, 2018

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Dec 12, 2018

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch Dec 13, 2018

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Dec 13, 2018

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch Dec 19, 2018

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Dec 19, 2018

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Feb 13, 2019

@mba-odoo mba-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch from be39545 to aa63dc9 Feb 13, 2019

@robodoo robodoo removed the CI 🤖 label Feb 13, 2019

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch 2 times, most recently from 4a1ca12 to f590d1a Feb 13, 2019

@robodoo robodoo added the CI 🤖 label Feb 13, 2019

hbh-odoo and others added some commits Nov 12, 2018

[IMP] mail: Displayed all activity types as a column on the activity …
…view

On the activity view, displayed all activity types as a column which are linked to the current model or linked to no model, even if no activity scheduled yet. Also They should be ordered based on their sequence from left to right.

Related to Task: 1894990
[IMP] mail: Displayed text 'Schedule activity' while hovering on an e…
…mpty cell

Displayed text 'Schedule activity' while hovering on an empty cell. When click on the empty cell, open the direct activity modal with the corresponding activity type already selected instead of a dropdown-menu.

Related to Task: 1894990
[IMP] mail: Displayed a counter on cell if more than one activity sch…
…eduled

For a record and activity type, displayed a counter at the bottom right that shows the number of activities on cell if more than one activity scheduled.

Related to Task: 1894990
[IMP] mail: Displayed a footer 'Add <record_name>' to the table of ac…
…tivity view

Displayed a footer 'Add <record_name>' to the table of activity view to open the 'search more' treeview selector for the corresponding model. Once the user selects the record, close this modal and open the activity scheduling form.

Related to Task: 1894990
[IMP] mail: Added a progress-bar below the activity type name for act…
…ivity view

At the top of each column of activity view, displayed a progress-bar below the activity type name based on activity scheduled.
Create a widget ActivityColumnProgressBar form KanbanColumnProgressBar to handle rendering and filtered records based on activity view.

Related to Task: 1894990
[FIX] mail: Fixed dummy logic to remove year only if current year
On activity view, there is a dummy logic to remove year only if current year when replacing clock icon by closest deadline.
So, fixed that by valid logic as per locale.

Related to Task: 1894990
[IMP] base, mail: For the activity view, manage a 'create' button vis…
…ibility on search create popup based on access rights.

Related to Task: 1894990
[REF] mail: Refactoring the activity view
- Now the activity view arch should have field and template tags.
- A default template can be defined for most of the cases.
- A custom template can be defined (as in kanban views) to use the fields. Thus, it is possible to customise template as we want for each model.

[IMP] doc: Improvement for the activity view.

Related to Task: 1894990
[IMP] mail: For the activity view, allow to add kanban styled card on…
… y-axis.

The activity view will be dependant on the KanbanRecord class.

Here create a new widget ActivityRecordCard from KanbanRecord widget to apply style like kaban card and to apply separate template like 'activity-box' and its own classes instead of kanban classes. Thus adapted changes regarding that.

Related to Task: 1894990
[IMP] fleet: Improved the activity view of model 'fleet.vehicle.log.c…
…ontract' and 'fleet.vehicle' by custom template.

Related to Task: 1894990
[IMP] hr*: Improved the activity view for the followings:
The model 'hr.employee', 'hr.contract', 'hr.expense', 'hr.expense.sheet', 'hr.leave.allocation', 'hr.leave' and 'hr.applicant'.

Related to Task: 1894990
[IMP] product: Improved the activity view of products and product var…
…iants by providing custom template.

Related to Task: 1894990
[IMP] purchase: Improved the activity view of purchase orders by prov…
…iding custom template.

Related to Task: 1894990

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch from f590d1a to 772ea3a Feb 18, 2019

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Feb 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment