报表屡犯错误!
- 
Environment Information : 
 System : Windows-Vista-6.1.7601-SP1
 OS Name : nt
 Operating System Release : Vista
 Operating System Version : 6.1.7601
 Operating System Architecture : 32bit
 Operating System Locale : en_US.cp1252
 Python Version : 2.5.4
 OpenERP-Client Version : 5.0.3
 Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
 File "service\web_services.pyo", line 629, in go
 File "netsvc.pyo", line 67, in init
 KeyError: u'report.product.backlabel1'
 \product_init_.py
 import report
 \product_terp_.py
 {
 "name" : "Products & Pricelists",
 "version" : "1.1",
 "author" : "Tiny",
 "category" : "Generic Modules/Inventory Control",
 "depends" : ["base", "process"],
 "init_xml" : [],
 "demo_xml" : ["product_demo.xml"],
 "description": """
 'update_xml': [
 'product_report.xml'
 ],
 }
 \product\product_report.xml
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
 <data>
 <report auto="False" id="product_backlabel1" model="product.product" name="product.backlabel1" rml="product/report/product_backlabel1.rml" string="Back Labels1"/>
 </data>
 </openerp>
 \product\report_init_.py
 import product_backlabel1
 \product\report\product_backlabel1.py
 import time
 from report import report_sxw
 class product_backlabel1(report_sxw.rml_parse):
 def init(self, cr, uid, name, context):
 super(product_backlabel1, self).init(cr, uid, name, context)
 self.localcontext.update({
 'time': time,
 })
 report_sxw.report_sxw('report.product.backlabel1','product.product','addons/product/report/product_backlabel1.rml',parser=product_backlabel1)
- 
