magentoerpconnect_bundle_split Not Downloading the Bundled Product

Asked by Puneet on 2013-06-28

Hi

I have installed magentoerpconnect_bundle_split.

But now when I create the bundled product order through magneto and try to download the order, it doesn't download the order.

If I uninstall then I am able to download new order.

Need help on maintaining the Bundled Product in Magento/Open ERP.

Thanks
Puneet

Question information

Language:
English Edit question
Status:
Answered
For:
Magento OpenERP Connector Edit question
Assignee:
No assignee Edit question
Last query:
2013-06-28
Last reply:
2013-07-10
Puneet (puneet-aggi) said : #1

I did further testing and found below error while downloading the order

Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\base_external_referentials\decorator.py", line 130, in wrapper
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\base_sale_multichannels\sale.py", line 611, in _record_one_external_resource
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\base_external_referentials\external_osv.py", line 700, in _record_one_external_resource
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\base_external_referentials\decorator.py", line 49, in wrapped
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\magentoerpconnect\sale.py", line 425, in _transform_one_resource
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\base_external_referentials\external_osv.py", line 1455, in _transform_one_resource
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\base_external_referentials\external_osv.py", line 1640, in _transform_sub_mapping
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\base_external_referentials\external_osv.py", line 1330, in _transform_resources
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\base_sale_multichannels\sale.py", line 950, in _transform_one_resource
  File "C:\Program Files (x86)\OpenERP 6.1\Server\server\openerp\addons\base_external_referentials\external_osv.py", line 1422, in _transform_one_resource
MappingError: the mapping line: price for the object sale.order.line has this error: float() argument must be a string or a number

It seems that I am gettign error because of below code

result=[
('price_unit_tax_included', (float(resource['base_row_total_incl_tax']))/float(resource['qty_ordered'])),
('price_unit_tax_excluded', (float(resource['base_row_total']))/float(resource['qty_ordered'])),
('tax_rate', float(resource['base_row_total']) and (float(resource['base_row_total_incl_tax'])/float(resource['base_row_total'])-1)),
]

I am using bundled product and magentoerpconnect_bundle_split module is installed. It seems that I am getting error because price for the product included in bundle is None.

Can some some suggest me on how I can modify the code to work in my case.

Hi,

I used this module for a version of Magento which returns a 0 price for the bundle products.
You should open a bug with details on your magento version 0. I think you pointed the right mapping to correct. You can use a 0 value when the price is None.

Can you help with this problem?

Provide an answer of your own, or ask Puneet for more information if necessary.

To post a message you must log in.