You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/opt/odoo/run/odoo/connector-magento/connector_magento/models/sale_order/importer.py", line 77, in _rule_paid
if record['grand_total'] and amount_paid <= 0:
TypeError: unorderable types: str() <= int()
just changed the method:
def _rule_paid(self, record, method):
""" Import the order only if it has received a payment, or if there
is nothing to pay in the first place. """
amount_paid = float(record.get('payment', {}).get('amount_paid') or 0)
if record['grand_total'] and amount_paid <= 0:
raise OrderImportRuleRetry('The order has not been paid.\n'
'The import will be retried later.')
and deleted commit fa27e77, and everything seems to go smoothtly now..
The text was updated successfully, but these errors were encountered:
IJOL
changed the title
Importing from a regular magento 1.7 gives us an syntax alike error...
Importing from a regular magento 1.7 gives us a TypeError.
Apr 8, 2021
just changed the method:
and deleted commit fa27e77, and everything seems to go smoothtly now..
The text was updated successfully, but these errors were encountered: