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

[11.0] [MIG] project_indicators: Migrated module in v11. #26

Open
wants to merge 14 commits into
base: 11.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# list the OCA project dependencies, one per line
# add a github url if you need a forked version
project
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.
Also you can print the Project Tracking Report in PDF format.


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**>`_.


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly add usage section so it will help end user to check on runbot.
https://raw.githubusercontent.com/OCA/maintainer-tools/master/template/module/README.rst

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.
26 changes: 2 additions & 24 deletions project_indicators/__init__.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
# -*- 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.
#
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
##############################################################################

from . import project
from . import models
from . import report
53 changes: 12 additions & 41 deletions project_indicators/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,53 +1,24 @@
# -*- 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.
#
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
##############################################################################


{
"name": "Project indicators",
"version": "1.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"version": "11.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)
""",
"website": "http://camptocamp.com",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"depends": ['project',
'account_analytic_analysis',
'report_webkit'],
"data": ['project_view.xml',
'report.xml'],
"active": False,
"installable": False,
"license": "AGPL-3",
"depends": ['sale_timesheet',
'web'],
"data": ['views/project_view.xml',
'views/report.xml',
'report/project_tracking.xml'],
"application": False,
"installable": True,
}
3 changes: 3 additions & 0 deletions project_indicators/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import project
25 changes: 25 additions & 0 deletions project_indicators/models/project.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
##############################################################################
#
# Copyright (c) 2010 Camptocamp SA
# @author Guewen Baconnier
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
##############################################################################

from odoo import models, fields, api


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

@api.multi
@api.depends('delay_hours', 'planned_hours')
def _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='_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.

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

from . import project_tracking
Loading