Comment 1 for bug 1281461

Revision history for this message
atchuthan (atchuthantu) wrote :

Omar, I had the same problem with the older version of Prestapyt library.

There was no support for float field type(cost and selling price of product) in the Prestapyt library .

The github version of Prestapyt for dict2xml.py contains
    # Create a new node for simple values
    if isinstance(tag_value, int) or isinstance(tag_value, (str, unicode)):
        return _process_simple(doc, tag, tag_value)

and in Launchpad (https://code.launchpad.net/~akretion-team/prestashoperpconnect/akretion-prestapyt)
    # Create a new node for simple values
    if isinstance(tag_value, (int, float)) or isinstance(tag_value, (str, unicode)):
        return _process_simple(doc, tag, tag_value)