Skip to content

Commit

Permalink
Merge pull request #186 from don-systems/fix-report-management_system…
Browse files Browse the repository at this point in the history
…_review_8.0

Fix report in management system review 8.0
  • Loading branch information
dreispt committed Aug 16, 2017
2 parents e6d9914 + f107f36 commit 1c973cf
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
8 changes: 3 additions & 5 deletions mgmtsystem_review/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-

from . import (
models,
report,
)
from . import models
from . import report
2 changes: 1 addition & 1 deletion mgmtsystem_review/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand Down
2 changes: 1 addition & 1 deletion mgmtsystem_review/models/mgmtsystem_review.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand Down
2 changes: 1 addition & 1 deletion mgmtsystem_review/report/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-

from . import review_report
9 changes: 5 additions & 4 deletions mgmtsystem_review/report/review_report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand All @@ -23,17 +23,18 @@
from openerp.report import report_sxw


class mgmtsystem_review_report(report_sxw.rml_parse):
class MgmtsystemReviewReport(report_sxw.rml_parse):

def __init__(self, cr, uid, name, context):
super(mgmtsystem_review_report, self).__init__(cr, uid, name, context)
super(MgmtsystemReviewReport, self).__init__(cr, uid, name, context)
self.localcontext.update({
'time': time,
})


report_sxw.report_sxw(
'report.mgmtsystem.review.report',
'mgmtsystem.review',
'addons/mgmtsystem_review/report/review_report.rml',
parser=mgmtsystem_review_report
parser=MgmtsystemReviewReport
)
10 changes: 5 additions & 5 deletions mgmtsystem_review/views/mgmtsystem_review.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<field name="action_id" attrs="{'invisible' : [('type', '!=', 'action')]}"/>
<field name="nonconformity_id" attrs="{'invisible' : [('type', '!=', 'nonconformity')]}"/>
<field name="decision"/>
<field name="company_id" group="base.group_multi_company"/>
<field name="company_id" group="base.group_multi_company"/>
</tree>
</field>
</record>
Expand All @@ -30,7 +30,7 @@
<field name="action_id"/>
<field name="nonconformity_id"/>
<field name="decision"/>
<field name="company_id" group="base.group_multi_company"/>
<field name="company_id" group="base.group_multi_company"/>
</search>
</field>
</record>
Expand All @@ -49,7 +49,7 @@
<field name="nonconformity_id" attrs="{'invisible' : [('type', '!=', 'nonconformity')]}"/>
<newline/>
<field name="decision"/>
<field name="company_id" group="base.group_multi_company"/>
<field name="company_id" group="base.group_multi_company"/>
</group>
</form>
</field>
Expand All @@ -73,7 +73,7 @@
<field name="name" attrs="{'readonly':[('state','=','done')]}"/>
<field name="date" attrs="{'readonly':[('state','=','done')]}"/>
<field name="reference"/>
<field name="company_id" group="base.group_multi_company"/>
<field name="company_id" group="base.group_multi_company"/>
<!-- Invisible fields below are to allow their use in domains of this view -->
<field name="state" invisible="1"/>
</tree>
Expand Down Expand Up @@ -135,7 +135,7 @@
</group>
<newline/>
<separator string="Survey Answers" colspan="4"/>
<field name="response_ids" colspan="4" nolabel="1" attrs="{'readonly':[('state','=','done')]}"/>
<field name="response_ids" colspan="4" nolabel="1" attrs="{'readonly':[('state','=','done')]}" domain="[('state','=','done')]"/>
</page>
<page string="Lines">
<field name="line_ids" nolabel="1" attrs="{'readonly':[('state','=','done')]}"/>
Expand Down

0 comments on commit 1c973cf

Please sign in to comment.