-
-
Notifications
You must be signed in to change notification settings - Fork 209
Open
Description
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..
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels