← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 702621] Re: Update order status scheduler broken

 

Thx,
I dont quite know what im doing but I got the scheduler to kind of work using some code from another branch.

def _sale_shop(self, cr, uid, callback, context=None):
        if context is None:
            context = {}
        search_params = [
            ('magento_shop', '=', True),
            ('auto_import', '=', True),
        ]
        ids = self.pool.get('sale.shop').search(cr, uid, search_params, context=context)
        if ids:
            callback(cr, uid, ids, context=context)
        tools.debug(callback)
        tools.debug(ids)

But after it runs "successfully" it gives the deprecation warning for
the tools and then stops and I have to restart the server. The other
developer had ctx=context but I dont know what that means. Hope this
helps.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/702621

Title:
  Update order status scheduler broken

Status in Magento Open ERP Connector:
  New

Bug description:
  When manually updating order status to magento and from magento it
  works great. If I was to schedule this event it does not work

  object has no attribute 'get'
  I tried altering the code a few different ways but it goes back to the original message. I am not sure what the problem is with the code but I do know that update order status scheduler does not work. Please verify and confirm.





References