Error due to no shipping tax during order import

Bug #485096 reported by youngi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Fix Released
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "netsvc.pyo", line 242, in dispatch
  File "netsvc.pyo", line 73, in __call__
  File "service\web_services.pyo", line 583, in execute
  File "osv\osv.pyo", line 59, in wrapper
  File "osv\osv.pyo", line 119, in execute
  File "osv\osv.pyo", line 111, in execute_cr
  File "C:\Program Files\OpenERP AllInOne\Server\addons\base_sale_multichannels\sale.py", line 191, in import_orders
  File "C:\Program Files\OpenERP AllInOne\Server\addons\magentoerpconnect\sale.py", line 75, in import_shop_orders
  File "C:\Program Files\OpenERP AllInOne\Server\addons\magentoerpconnect\magerp_osv.py", line 254, in mage_import_base
  File "C:\Program Files\OpenERP AllInOne\Server\addons\magentoerpconnect\sale.py", line 180, in ext_import
  File "C:\Program Files\OpenERP AllInOne\Server\addons\base_external_referentials\external_osv.py", line 143, in ext_import
  File "C:\Program Files\OpenERP AllInOne\Server\addons\magentoerpconnect\sale.py", line 175, in oevals_from_extdata
  File "C:\Program Files\OpenERP AllInOne\Server\addons\magentoerpconnect\sale.py", line 151, in get_order_shipping
TypeError: float() argument must be a string or a number

My shop does not have a tax for shipping prices.
After edit of sale.py commenting this:
ship_tax_vat = float(data_record['shipping_tax_amount'])/float(data_record['shipping_amount'])
and assign a value of 0 to ship_tax_vat by:
ship_tax_vat=0
error is then bypassed

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

fixed by commit #218

Changed in magentoerpconnect:
status: New → Fix Released
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.