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 16 commits into
base: master
from

Conversation

Projects
None yet
3 participants
@hbh-odoo
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 from a97fbb8 to d8d89b0 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 from 4913283 to 5cf9de9 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 from 5cf9de9 to 8aa65db Dec 11, 2018

@robodoo robodoo added CI 🤖 and removed CI 🤖 labels Dec 11, 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

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch from 7e08840 to f374d72 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 from f374d72 to f0829d1 Dec 12, 2018

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

hbh-odoo added some commits Nov 13, 2018

[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.

Also improved '_onReload' function of ActivityController because it was performing two times reload of ActivityModel.

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
[IMP] mail: qunit adaption.
Related to Task: 1894990
[IMP] mail: Displayed a small kanban-styled card with minimal info in…
…stead of record name as Y-axis

purpose
=======
Instead of the record name as the 'Y-axis', we should have a small kanban-styled card with minimal info on the record (e.g. in crm.lead: assigned user picture, name, planned revenue).

Specification
=============

- Added optional attribute 'options' to the activity view with a keys ('data_image', 'data_title' and 'data_subtitle') and field as a values
- If options are there in activity view then displayed a Y-axis based on applied field on options keys otherwise only record names displayed on Y-axis
- For keys values should be,
	- data_image: it may be a relational or binary field
	- data_title: not a relational field
	- data_subtitle: it may be a monetary field or other field but not a relational field

Related to Task: 1894990
[IMP] account: Improved 'account.invoice' activity view
On the account invoice view, also displayed a amount total instead of just a invoice name.

Related to Task: 1894990
[IMP] crm: Improved 'crm.lead' activity view
On the crm leads activity view, also displayed an assigned user picture and a planned revenue on the Y-axis instead of just records name.

Related to Task: 1894990
[IMP] fleet: Improved 'fleet.vehicle' and 'fleet.vehicle.log.contract…
…' activity view

On 'fleet.vehicle' view, also displayed a vehicle image and a location instead of just a records name on Y-axis.
On 'fleet.vehicle.log.contract' view, also displayed a purchaser image and frequency of the recuring cost instead of just a records name on Y-axis.

Related to Task: 1894990

hbh-odoo added some commits Nov 30, 2018

[IMP] hr*: Improved activity view
- For 'hr.employee' view, also displayed a employee image and a work email on Y-axis instead of juat a employee name.
- For 'hr.contract' view, also displayed a employee image on Y-axis instead of juat a employee name.
- For 'hr.expense' and 'hr.expense.sheet' views, also displayed a total amount on Y-axis instead of juat an expense name.
- For 'hr.leave.allocation' and 'hr.leave' views, also displayed a employee image on Y-axis instead of juat a records name.
- For 'hr.applicant' view, also displayed a responsible person image and a mobile number on Y-axis instead of juat a application name.

Related to Task: 1894990
[IMP] product: Improved 'product.product' and 'product.template' acti…
…vity view

For product variants and products view, also displayed an image on Y-axis instead of just a product names.

Related to Task: 1894990
[IMP] project: Improved 'project.task' activity view
For project tasks view, also displayed a assigned person image on Y-axis instead of just a task names.

Related to Task: 1894990
[IMP] purchase: Improved 'purchase.order' activity view
For purchase order view, also displayed a total amount on Y-axis instead of just a records name.

Related to Task: 1894990
[IMP] sale: Improved 'sale.order' activity view
For sale order view, also displayed a total amount on Y-axis instead of just a records name.

Related to Task: 1894990
[IMP] mail: Added partners activity view.
Added partners activity view with options 'data_image' and 'data_subtitle'.

Related to Task: 1894990

@hbh-odoo hbh-odoo force-pushed the odoo-dev:master-activity-view-imp-hbh branch from f0829d1 to 0ce105c Dec 12, 2018

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

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