From c56533b48e7bcad76c043da5f1d881b1f15a72fb Mon Sep 17 00:00:00 2001 From: projectsodoo Date: Mon, 21 Dec 2020 15:11:21 +0530 Subject: [PATCH] cor report issue fixed --- cor_custom/__manifest__.py | 2 +- cor_custom/report/__init__.py | 2 +- cor_custom/report/project_profitability_report_analysis.py | 2 +- .../report/project_profitability_report_analysis_views.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cor_custom/__manifest__.py b/cor_custom/__manifest__.py index 137710f..8b17674 100755 --- a/cor_custom/__manifest__.py +++ b/cor_custom/__manifest__.py @@ -30,7 +30,7 @@ 'views/project_view.xml', 'views/hr_timesheet_templates.xml', # 'views/analytic_view.xml', - #'report/project_profitability_report_analysis_views.xml', + 'report/project_profitability_report_analysis_views.xml', 'views/views.xml', 'views/templates.xml', 'wizard/project_create_sale_order_views.xml', diff --git a/cor_custom/report/__init__.py b/cor_custom/report/__init__.py index 666c524..22d6147 100755 --- a/cor_custom/report/__init__.py +++ b/cor_custom/report/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -#from . import project_profitability_report_analysis +from . import project_profitability_report_analysis diff --git a/cor_custom/report/project_profitability_report_analysis.py b/cor_custom/report/project_profitability_report_analysis.py index c572449..dd7a013 100755 --- a/cor_custom/report/project_profitability_report_analysis.py +++ b/cor_custom/report/project_profitability_report_analysis.py @@ -19,7 +19,7 @@ class ProfitabilityAnalysis(models.Model): partner_id = fields.Many2one('res.partner', string='Customer', readonly=True) line_date = fields.Date("Date", readonly=True) # cost - budgeted_unit_amount = fields.Float("Budgeted Duration", digits=(16, 2), readonly=True, group_operator="sum") + #budgeted_unit_amount = fields.Float("Budgeted Duration", digits=(16, 2), readonly=True, group_operator="sum") timesheet_unit_amount = fields.Float("Timesheet Duration", digits=(16, 2), readonly=True, group_operator="sum") timesheet_cost = fields.Float("Timesheet Cost", digits=(16, 2), readonly=True, group_operator="sum") expense_cost = fields.Float("Other Costs", digits=(16, 2), readonly=True, group_operator="sum") diff --git a/cor_custom/report/project_profitability_report_analysis_views.xml b/cor_custom/report/project_profitability_report_analysis_views.xml index 5cbab96..4624f49 100755 --- a/cor_custom/report/project_profitability_report_analysis_views.xml +++ b/cor_custom/report/project_profitability_report_analysis_views.xml @@ -10,7 +10,7 @@ - +