-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Chandresh-SerpentCS
wants to merge
14
commits into
OCA:11.0
Choose a base branch
from
Chandresh-SerpentCS:11.0-MIG-project_indicators
base: 11.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3177520
[ADD] First commit of the first generic modules to move in our new pu…
jgrandguillaume 83d30e9
[IMP] Little patch from Ferdinand to correct the color used in projec…
jgrandguillaume 556d5f6
[MRG] from 6.1
14124ec
[MRG] from upstream
a198d86
Merge from upstream
sbidoul 5177a61
[MIGR] created 7.0 branch, marked modules as not installable
gurneyalex 7948ff9
[FIX] project_indicators - add encoding on mako template to fix trans…
yvaucher 0462c33
[REF] auto-fix conventions
moylop260 ef95427
[FIX] Travis
pedrobaeza 593de9d
[PRT] Move modules to __unported__ for 8.0 branch creation
ddfbc30
[MOV] move addons out of __unported__ (they remain not installable)
sbidoul 8f17059
[MIG] Rename manifest files
pedrobaeza 98113af
[MIG] Migrated project_indicators module in v11.
Chandresh-SerpentCS 00a425e
[ADD] Added runbot link.
Chandresh-SerpentCS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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**>`_. | ||
|
||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Website to be: https://github.com/OCA/project-reporting/ |
||
"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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.") |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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