Added __terp__.py test on base_module_quality,bugfixed base_vat
bzr revid: jvo@tinyerp.com-20081230134652-m5fjzebjmt3x7zfr
This commit is contained in:
@@ -136,6 +136,9 @@ class abstract_quality_check(object):
|
||||
detail += ('\n|-\n| %s \n| %s \n| %s \n| %s \n| %s \n| %s ') % (data[0], data[1], data[2], data[3], data[4], data[5])
|
||||
res_format['detail'] = detail + '\n|}\n'
|
||||
res_format['summary'] = data_list[0]
|
||||
elif test=='terp':
|
||||
res_format['summary'] = data_list[0]
|
||||
res_format['detail'] = data_list[1]
|
||||
return res_format
|
||||
|
||||
def add_quatation(self, x, y):
|
||||
|
||||
@@ -81,7 +81,7 @@ class quality_test(base_module_quality.abstract_quality_check):
|
||||
summary ="""
|
||||
===Pylint Test===:
|
||||
|
||||
This test checks if the module satisfy the current coding standard used by OpenERP.
|
||||
This test checks if the module satisfies the current coding standard used by OpenERP.
|
||||
|
||||
""" #+ "Score: " + str(self.score) + "/10\n"
|
||||
else:
|
||||
|
||||
@@ -64,8 +64,8 @@ class quality_test(base_module_quality.abstract_quality_check):
|
||||
if size:
|
||||
c1 = cr.count
|
||||
|
||||
pool.get(obj).read(cr, uid, ids[0])
|
||||
pool.get(obj).read(cr, uid, ids[0])
|
||||
pool.get(obj).read(cr, uid, [ids[0]])
|
||||
pool.get(obj).read(cr, uid, [ids[0]])
|
||||
code_base_complexity = cr.count - c1
|
||||
|
||||
pool.get(obj).read(cr, uid, ids[:size/2])
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"version" : "1.0",
|
||||
"author" : "Tiny",
|
||||
"category" : "Generic Modules/Base",
|
||||
"depends" : ["base"],
|
||||
"depends" : ["base","account"],
|
||||
"update_xml" : ["base_vat_data.xml"],
|
||||
"active": False,
|
||||
"installable": True
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<record id="view_partner_form" model="ir.ui.view">
|
||||
<field name="name">res.partner.vat.inherit</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="property_account_position" position="after">
|
||||
<group colspan="1" col="2">
|
||||
|
||||
Reference in New Issue
Block a user