c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #01733
[Bug 669339] Re: Update shipping status error
** Patch added: "Attribute name modification for update shipping status"
https://bugs.launchpad.net/bugs/669339/+attachment/1719073/+files/update_shipping_status.diff
--
Update shipping status error
https://bugs.launchpad.net/bugs/669339
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in Magento Open ERP Connector: New
Bug description:
Hello,
I got an error when trying to update the shipping status.
In the method create_ext_complete_shipping on stock.picking (stock.py) OpenERP calls the Magento API method : sales_order_shipment.list and searches for an attribute named "order_increment_id" but Magento doesn't send it.
except Exception, e:
shipping_list = conn.call('sales_order_shipment.list')
for shipping in shipping_list:
if shipping['order_increment_id'] == magento_incrementid:
ext_shipping_id = shipping['increment_id']
break
I just replaced the order_increment_id by increment_id.
OpenERP-Client Version : 5.0.14
Last revision No. & ID :Bazaar Package not Found !Traceback (most recentcall last): File "/srv/openerp/instances/openerp_qa/src/server/bin/netsvc.py", line 247, in dispatch
Logger().notifyChannel('%s' % title, LOG_DEBUG_RPC, pformat(msg))
File "/srv/openerp/instances/openerp_qa/src/server/bin/netsvc.py", line 76, in __call__ return getattr(self, method)(*params)
File "/srv/openerp/instances/openerp_qa/src/server/bin/service/web_services.py", line 577, in execute res = service.execute(db, uid, object, method, *args)
File "/srv/openerp/instances/openerp_qa/src/server/bin/osv/osv.py", line 58, in wrapper return f(self, dbname, *args, **kwargs)
File "/srv/openerp/instances/openerp_qa/src/server/bin/osv/osv.py", line 119, in execute res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/srv/openerp/instances/openerp_qa/src/server/bin/osv/osv.py", line 111, in execute_cr return getattr(object, method)(cr, uid, *args, **kw)
File "/srv/openerp/instances/openerp_qa/src/server/bin/addons/base_sale_multichannels/sale.py", line 274, in export_shipping ext_shipping_id = self.pool.get('stock.picking').create_ext_shipping(cr, uid, result[0], picking_type, shop.referential_id.id, ctx)
File "/srv/openerp/instances/openerp_qa/src/server/bin/addons/magentoerpconnect/stock.py", line 72, in create_ext_shipping ext_shipping_id = eval('self.create_ext_' + picking_type + '_shipping(cr, uid, id, external_referential_id, magento_incrementid, ctx)')
File "<string>", line 1, in <module>
File "/srv/openerp/instances/openerp_qa/src/server/bin/addons/magentoerpconnect/stock.py", line 38, in create_ext_complete_shipping if shipping['order_increment_id'] == magento_incrementid: KeyError: 'order_increment_id'
References