Import Order on Magento 1.4.1.1

Asked by ntrubert-cobweb on 2010-07-27

Magento is now on 1.4.1.1 but it is not possible to place order their still an issue:
http://www.magentocommerce.com/boards/viewthread/200324/

I came back to the 1.4.1.0 patched but <Import Orders> is not possible a got this error :

  File "/usr/src/openerp/openerp-server-5.0.12/bin/addons/magentoerpconnect_generic/sale.py", line 346, in oevals_from_extdata
    res = self.get_order_addresses(cr, uid, res, external_referential_id, data_record, key_field, mapping_lines, defaults, context)
  File "/usr/src/openerp/openerp-server-5.0.12/bin/addons/magentoerpconnect_generic/sale.py", line 286, in get_order_addresses
    vat = data_record['customer_taxvat'].translate(allchars, delchars).upper()
AttributeError: 'NoneType' object has no attribute 'translate'

How can I disabled this attribute 'translate' ?

Question information

Language:
English Edit question
Status:
Solved
For:
Magento OpenERP Connector Edit question
Assignee:
No assignee Edit question
Solved by:
ntrubert-cobweb
Solved:
2010-07-30
Last query:
2010-07-30
Last reply:
ntrubert-cobweb (ntrubert) said : #1

Magento 1.4.1.1 works with fresh install

For an update it is possible to correct issue by this way:
copy ./fresh_magento_1_4_1_1/app/code/core/Mage/ over ./<already_updated_magento_1_4_1_1>/app/code/core/Mage/

However I always got error when I try to <Import Orders>

File "/usr/src/openerp/openerp-server-5.0.12/bin/addons/magentoerpconnect_generic/sale.py", line 346, in oevals_from_extdata
    res = self.get_order_addresses(cr, uid, res, external_referential_id, data_record, key_field, mapping_lines, defaults, context)
  File "/usr/src/openerp/openerp-server-5.0.12/bin/addons/magentoerpconnect_generic/sale.py", line 286, in get_order_addresses
    vat = data_record['customer_taxvat'].translate(allchars, delchars).upper()
AttributeError: 'NoneType' object has no attribute 'translate'

ntrubert-cobweb (ntrubert) said : #2

I'm using this branch now with some modification :

https://code.launchpad.net/~openlabs-akretion-consortium/magentoerpconnect/improved_discount_n_address
Go feature in it (check if address is already registered)

And also I disabled auto invoice generation.

My issue is solved and I'm working on magento 1.4.1.1