No error handling when the weight on Magento is not a float
Bug #1299721 reported by
Karsten Kinateder
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Connector - Magento |
Confirmed
|
Medium
|
Unassigned |
Bug Description
As example:
In Magento the product eav attribute "weight" is a system attribute and cant be changed from Magento Backend. There is no field validation in 1.7-1.8.1 for this field and the type is text in Magento Backend.
So it is possible, that a Backend User types "50 kg" or makes a typo in that field. Connector expects a float and throws exeption cause text is synchronized from magento.
Q&D: UPDATE 'eav_attribute' SET 'frontent_class' = 'validate-decimal' WHERE 'attribute_code' = 'weight'
to correct errors: UPDATE 'catalog_
Related branches
lp:~initos.com/openerp-connector-magento/7.0-solution_for_no_float_weights_from_magento
- Guewen Baconnier @ Camptocamp: Needs Resubmitting
-
Diff: 31 lines (+17/-2)1 file modifiedmagentoerpconnect/product.py (+17/-2)
To post a comment you must log in.
Hi,
Thanks for reporting.
I propose to check if the weight is float during the mapping and to not import it if not, with a log message saying that it couldn't import the weight.