c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #17474
[Bug 724441] Re: nan_product_pack causes problems, impossible to delete
Here is a server log of the event happening. Basically installing the
module for me made it so I cant import orders, I cant remove it. So I
got screwed
[2011-02-24 11:20:31,130][dev] WARNING:browse_record:[02]: None
[2011-02-24 11:20:32,629][dev] INFO:ext synchro:Created in OpenERP sale.order from External Ref with external_id 1128051 and O
penERP id 19984 successfully
[2011-02-24 11:20:35,826][dev] INFO:ext synchro:Created in OpenERP res.partner from External Ref with external_id 58395 and Op
enERP id 17453 successfully
order2336859 and OpenERP id 30307 successfully
[2011-02-24 11:20:35,869][dev] INFO:ext synchro:Created in OpenERP res.partner.address from External Ref with external_id mag_
order2336860 and OpenERP id 30308 successfully
[2011-02-24 11:20:39,593][dev] WARNING:browse_record:[01]: Field '0' does not exist in object 'browse_record(sale.order, 19985
)':
[2011-02-24 11:20:39,593][dev] WARNING:browse_record:[02]: None
[2011-02-24 11:20:41,014][dev] INFO:ext synchro:Created in OpenERP sale.order from External Ref with external_id 1128052 and O
penERP id 19985 successfully
[2011-02-24 11:20:41,927][dev] INFO:ext synchro:Updated in OpenERP res.partner.address from External Ref with external_id 5695
1 and OpenERP id 14226 successfully
[2011-02-24 11:20:41,951][dev] INFO:ext synchro:Updated in OpenERP res.partner.address from External Ref with external_id 5695
1 and OpenERP id 14226 successfully
[2011-02-24 11:20:43,095][dev] WARNING:browse_record:[01]: Field '0' does not exist in object 'browse_record(sale.order, 19986
)':
[2011-02-24 11:20:43,095][dev] WARNING:browse_record:[02]: None
[2011-02-24 11:20:43,893][dev] INFO:ext synchro:Created in OpenERP sale.order from External Ref with external_id 1128053 and O
penERP id 19986 successfully
[2011-02-24 11:20:44,870][dev] INFO:ext synchro:Created in OpenERP res.partner.address from External Ref with external_id mag_
order2336870 and OpenERP id 30309 successfully
[2011-02-24 11:20:44,889][dev] INFO:ext synchro:Created in OpenERP res.partner.address from External Ref with external_id mag_
order2336871 and OpenERP id 30310 successfully
[2011-02-24 11:20:45,420][dev] WARNING:browse_record:[01]: Field '0' does not exist in object 'browse_record(sale.order, 19987
)':
[2011-02-24 11:20:45,421][dev] WARNING:browse_record:[02]: None
[2011-02-24 11:20:45,421][dev] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/addons/base_sale_multichannels/sale.py", line 192, in import_orders
self.import_shop_orders(cr, uid, shop, defaults, context)
File "/opt/openerp/addons/magentoerpconnect/sale.py", line 169, in import_shop_orders
resp = self.pool.get('sale.order').mage_import_base(cr, uid, context.get('conn_obj', False), shop.referential_id.id, defau
lts=defaults, context={'one_by_one': True, 'ids_or_filter':ids_or_filter})
File "/opt/openerp/addons/magentoerpconnect/magerp_osv.py", line 236, in mage_import_base
rec_result = self.ext_import(cr, uid, rec_data, external_referential_id, defaults, context)
File "/opt/openerp/addons/base_external_referentials/external_osv.py", line 208, in ext_import
crid = self.oe_create(cr, uid, vals, each_row, external_referential_id, defaults, context)
File "/opt/openerp/addons/magentoerpconnect/sale.py", line 514, in oe_create
self.oe_status(cr, uid, order_id, paid, context)
File "/opt/openerp/addons/base_sale_multichannels/sale.py", line 343, in oe_status
self.write(cr, uid, order.id, {'need_to_update': True})
File "/opt/openerp/addons/nan_product_pack/pack.py", line 116, in write
self.expand_packs(cr, uid, ids, context)
File "/opt/openerp/addons/nan_product_pack/pack.py", line 123, in expand_packs
for order in self.browse(cr, uid, ids, context):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 189, in __getitem__
name, self))
--
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/724441
Title:
nan_product_pack causes problems, impossible to delete
Status in OpenERP Modules (addons):
New
Bug description:
I was really interested in nan_product_pack module. So I installed it.
on a test database when I tried to download orders I get a warning at
every record and now this
Environment Information :
System : Windows-Vista-6.1.7600
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.1.7600
Operating System Architecture : 32bit
Operating System Locale : en_US.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 6.0.1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/addons/base_sale_multichannels/sale.py", line 192, in import_orders
self.import_shop_orders(cr, uid, shop, defaults, context)
File "/opt/openerp/addons/magentoerpconnect/sale.py", line 169, in import_shop_orders
resp = self.pool.get('sale.order').mage_import_base(cr, uid, context.get('conn_obj', False), shop.referential_id.id, defaults=defaults, context={'one_by_one': True, 'ids_or_filter':ids_or_filter})
File "/opt/openerp/addons/magentoerpconnect/magerp_osv.py", line 236, in mage_import_base
rec_result = self.ext_import(cr, uid, rec_data, external_referential_id, defaults, context)
File "/opt/openerp/addons/base_external_referentials/external_osv.py", line 208, in ext_import
crid = self.oe_create(cr, uid, vals, each_row, external_referential_id, defaults, context)
File "/opt/openerp/addons/magentoerpconnect/sale.py", line 514, in oe_create
self.oe_status(cr, uid, order_id, paid, context)
File "/opt/openerp/addons/base_sale_multichannels/sale.py", line 343, in oe_status
self.write(cr, uid, order.id, {'need_to_update': True})
File "/opt/openerp/addons/nan_product_pack/pack.py", line 116, in write
self.expand_packs(cr, uid, ids, context)
File "/opt/openerp/addons/nan_product_pack/pack.py", line 123, in expand_packs
for order in self.browse(cr, uid, ids, context):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 189, in __getitem__
name, self))
KeyError: "Field '0' does not exist in object 'browse_record(sale.order, 19987)'"
So now, I cant download orders. If I try to remove the module it
works, but then when I again attempt to import orders I cant at all
because it says it violates a not null contraint. So the module has
effectively ruined my installation and I cant remove it.
References