base module quality

bzr revid: mra@tinyerp.com-20081230084240-go6c5djrruln1dtw
This commit is contained in:
mra (Open ERP)
2008-12-30 14:12:40 +05:30
parent 892c7f1368
commit 539d1537a8
3 changed files with 33 additions and 13 deletions
@@ -7,21 +7,29 @@
<field name="name">Results of Quality Checks</field>
<field name="model">wizard.quality.check</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Result">
<notebook>
<page string="Verbose detail">
<field name="verbose_detail" string="Verbose detail" nolabel="1" colspan="4" height="350" width="800"/>
</page>
</notebook>
</form>
</field>
</record>
<record id="view_wizard_quality_detail" model="ir.ui.view">
<field name="name">Results of Quality Checks with detail</field>
<field name="model">quality.check.detail</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Result">
<notebook>
<page string="Summary">
<!-- <separator string="Summary" colspan="4"/>-->
<field name="general_info" widget="text_wiki" nolabel="1" colspan="4" height="350" width="800"/>
</page>
<page string="Detail">
<!-- <separator string="Detail" colspan="4"/>-->
<field name="detail" widget="text_wiki" nolabel="1" colspan="4" height="350" width="800"/>
</page>
<page string="Verbose detail">
<!-- <separator string="Verbose detail" colspan="4"/>-->
<field name="verbose_detail" widget="text_wiki" nolabel="1" colspan="4" height="350" width="800"/>
</page>
</notebook>
</form>
</field>
@@ -101,7 +101,7 @@ class quality_test(base_module_quality.abstract_quality_check):
summary = """
===Speed Test===:
This test checks the speed of the module.
This test checks the speed of the module.
"""+ "Score: " + str(self.score) + "/10\n"
else:
@@ -76,11 +76,12 @@ class wiz_quality_check(osv.osv_memory):
string_ret += val.result['summary']
string_detail += val.result['detail']
self.string_detail = string_detail
return string_ret
return ""
def _check_detail(self, cr, uid, data, context={}):
return self.string_detail
# def _general_info(self, cr, uid, data, context={}):
# return self.general_info
@@ -98,16 +99,27 @@ class wiz_quality_check(osv.osv_memory):
#~ 'result': {'type':'form', 'arch':form_check, 'fields':fields_check, 'state':[('end','Cancel'),('do','Do Test')]}
#~ },
_columns = {
'general_info': fields.text('General Info', readonly="1",),
'detail' : fields.text('Detail', readonly="1",),
'verbose_detail' : fields.text('Verbose Detail', readonly="1",)
# 'general_info': fields.text('General Info', readonly="1",),
# 'detail' : fields.text('Detail', readonly="0",),
'verbose_detail' : fields.one2many('quality.check.detail', 'quality_check', 'Verbose Detail', readonly="0",)
}
_defaults = {
'general_info': _check,
'detail': _check_detail
# 'general_info': _check,
# 'detail': _check_detail
'verbose_detail': _check,
}
wiz_quality_check()
class quality_check_detail(osv.osv_memory):
_name = 'quality.check.detail'
_rec_name = 'quality_check'
_columns = {
'quality_check': fields.many2one('wizard.quality.check', 'Quality'),
'general_info': fields.text('General Info', readonly="1",),
'detail' : fields.text('Detail', readonly="1",),
}
quality_check_detail()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: