Hello,

I haven't given the import wizard in the main __init__.py file. That's why it 
was creating a problem.

But now i getting another problem which i have explained below,

i have generated by customized report but now when i am trying to call it, it 
generating below error. 

I have pasted the error and also my code below. Please kindly review it and 
kindly send me your feedback

---------------------------------------------------------------------------------------
Environment Information :
System : Linux-2.6.27-14-generic-i686-with-debian-lenny-sid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
Operating System Release : 2.6.27-14-generic
Operating System Version : #1 SMP Tue Aug 18 16:25:45 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.5.2
OpenERP-Client Version : 5.0.3
Last revision No. & ID : 984 [email protected]
Traceback (most recent call last):
  File "/home/deven/workspace/server/bin/service/web_services.py", line 687, in 
go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/home/deven/workspace/server/bin/report/report_sxw.py", line 364, in 
create
    return fnct(cr, uid, ids, data, report_xml, context)
  File "/home/deven/workspace/server/bin/report/report_sxw.py", line 421, in 
create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/home/deven/workspace/server/bin/report/report_sxw.py", line 431, in 
create_single_pdf
    objs = self.getObjects(cr, uid, ids, context)
  File "/home/deven/workspace/server/bin/report/report_sxw.py", line 337, in 
getObjects
    return table_obj.browse(cr, uid, ids, list_class=browse_record_list, 
context=context, fields_process=_fields_process)
AttributeError: 'NoneType' object has no attribute 'browse'
-------------------------------------------------------------------------------------------------------

Here i am pasting my code,

main __init__.py file :
import arihant_stage1
import wizard
import report

report __init__.py file:
import purchase_by_product

purchase_by_product file:
import time
from report import report_sxw
from osv import osv
import pooler

class purchase_by_product(report_sxw.rml_parse):
    def __init__(self, cr, uid, name, context):
        super(purchase_by_product, self).__init__(cr, uid, name, context)
        self.localcontext.update({
            'time': time,
            'user': self.pool.get('res.users').browse(cr, uid, uid, context)
           })
report_sxw.report_sxw('report.purchase.by.product','arihant_stage1.arihant_stage1','addons/arihant_stage1/report/purchase_by_product.rml',parser=purchase_by_product)

arihant_stage1_report.xml file:
<xml>
<openerp>
    <data>

  <report>

 </data>
</openerp>

arihant_stage1_wizard.xml file:
<xml>
<openerp>
    <data>

  <menuitem>

  <For>
  <wizard>
  <menuitem>

</data>
</openerp>


Waiting for your reply.
Thanks in advance.

------------------------
Sincerely,
Deven
www.4colordesign.com




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=42422#42422

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to