Skip to content
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

[9.0][MIG] project_indicators: Migrated the module from 8.0 to 9.0 #21

Open
wants to merge 2 commits into
base: 9.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# list the OCA project dependencies, one per line
# add a github url if you need a forked version
project-service
reporting-engine
48 changes: 48 additions & 0 deletions project_indicators/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3

Project Indicators
=================================================


You can track your all the project status with the respective tasks list.
We are introducing the Project Tracking Report in the XLS format with this module. PDF report is already there.


For further information, please visit:

* https://www.odoo.com/forum/help-1


Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/project-reporting/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/project-reporting/issues/new?body=module:%20project_billing_utils%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

Contributors
------------

* Camptocamp <[email protected]>
* Serpent Consulting Services Pvt. Ltd. <[email protected]>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
2 changes: 1 addition & 1 deletion project_indicators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
#
##############################################################################

from . import project
from . import models
from . import report
30 changes: 12 additions & 18 deletions project_indicators/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,18 @@

{
"name": "Project indicators",
"version": "1.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"version": "9.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA), "
"Serpent Consulting Services Pvt. Ltd.",
"category": "Generic Modules/Projects & Services",
"description":
"""
This modules adds indicators on project :

- a popup window on the project view which display the indicators of its
analytic account.
- fields with planned vs effective difference
- a report for the tracking of the projects (based on report_webkit)
""",
"license": "AGPL-3",
"website": "http://camptocamp.com",
"depends": ['project',
'account_analytic_analysis',
'report_webkit'],
"data": ['project_view.xml',
'report.xml'],
"active": False,
"installable": False,
"depends": ['project_timesheet',
'report_webkit',
'report_xlsx'],
"data": ['views/project_view.xml',
'views/report.xml',
'report/project_tracking.xml'],
"installable": True,
"application": False,
}
4 changes: 4 additions & 0 deletions project_indicators/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import project
47 changes: 47 additions & 0 deletions project_indicators/models/project.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2010 Camptocamp SA
# @author Guewen Baconnier
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################

from openerp import api, models, fields


class ProjectTask(models.Model):
_inherit = 'project.task'

@api.multi
@api.depends('delay_hours', 'planned_hours')
def _compute_get_planning_error(self):
for task in self:
if task.delay_hours and task.planned_hours:
task.planning_error_percentage = round(
100.0 * task.delay_hours / task.planned_hours, 2)

planning_error_percentage = fields.Float(
compute='_compute_get_planning_error', string='Error (%)',
group_operator="avg",
help="Computed as: Delay Hours / Planned Hours.")
80 changes: 0 additions & 80 deletions project_indicators/project.py

This file was deleted.

108 changes: 0 additions & 108 deletions project_indicators/project_view.xml

This file was deleted.

14 changes: 0 additions & 14 deletions project_indicators/report.xml

This file was deleted.

4 changes: 4 additions & 0 deletions project_indicators/report/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import project_tracking
from . import wiz_project_tracking_indicator
Loading