[6.0] mailgate - missing method

Bug #718918 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Incomplete
Undecided
Unassigned

Bug Description

I tried both with id of crm.lead and crm.helpdesk in the
 -o
option

2011-02-14 19:43:15,337][chricar6] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/addons/mail_gateway/mail_gateway.py", line 562, in process_email
    new_res_id, attachment_ids = create_record(msg)
  File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/addons/mail_gateway/mail_gateway.py", line 425, in create_record
    res_id = model_pool.create(cr, uid, data, context=context)
AttributeError: 'NoneType' object has no attribute 'create'
[2011-02-14 19:43:15,338][chricar6] DEBUG:http:MultiHttpHandler init for ('127.0.0.1', 57591)

Revision history for this message
Ferdinand (office-chricar) wrote :

please - any solution for this ?

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello DR Ferdinand,

I have checked your issue with the latest trunk at my end. But I am not able to reproduce it.
So would you please elaborate with more information or provide the proper steps to reproduce it.

Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

I just tried it again using crm.helpdesk - it works - no idea why this was not the case before

 using option -o with ID does not work / find the model

    parser.add_option("-o", "--model", dest="model", help="Name or ID of crm model", default="crm.lead")

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Dr. Ferdinand,

If you are talking about fetching emails in these models with fetchmail module,this has been recently fixed.

Thanks.

Revision history for this message
Ferdinand (office-chricar) wrote :

yes that's was my problem

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Find the details here:
https://bugs.launchpad.net/openobject-addons/+bug/708616

We have now mail fetching/updating methods available for most commonly used OpenERP Models(lead,claim,project-issue and helpdesk).
Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.