Fix problem canceling the invoice if already canceled on PAC

If for some reason there were an error and PAC SF cancel an invoice
but the invoice remains open on OpenERP, trying to cancel the invoice
again give an exception indicating that the invoice is already canceled
preventing continue with the normal process at OpenERP.

This commit fix that behavior, now if invoince is already canceled on PAC
the cancelation process continue on OpenERP.
3 jobs for fix/sf_cancel
Status Job ID Name Coverage
  Test
failed #172
complexity

00:00:15

failed #173
flake8

00:00:10

failed #171
pylint

00:00:15

 
Name Stage Failure
failed
flake8 Test There is an unknown failure, please try again
./l10n_mx_facturae/invoice.py:1222:80: E501 line too long (83 > 79 characters)
./l10n_mx_facturae/invoice.py:1224:80: E501 line too long (87 > 79 characters)
./l10n_mx_facturae/invoice.py:1249:17: E128 continuation line under-indented for visual indent
./l10n_mx_facturae/invoice.py:1258:13: E128 continuation line under-indented for visual indent
./l10n_mx_facturae/invoice.py:1259:13: E122 continuation line missing indentation or outdented
./l10n_mx_facturae/invoice.py:1298:80: E501 line too long (119 > 79 characters)
./l10n_mx_facturae/invoice.py:1306:17: E127 continuation line over-indented for visual indent
./l10n_mx_facturae/invoice.py:1313:62: E502 the backslash is redundant between brackets
./l10n_mx_facturae/invoice.py:1314:17: E131 continuation line unaligned for hanging indent
kill -s INT 0
failed
complexity Test There is an unknown failure, please try again
done
xenon $d -b B -m B -a A
done
xenon $d -b B -m B -a A
done
xenon $d -b B -m B -a A
ERROR:xenon:block "l10n_mx_account_tax_category/invoice.py:37 account_invoice_tax" has a rank of C
ERROR:xenon:block "l10n_mx_account_tax_category/invoice.py:40 _get_tax_data" has a rank of C
ERROR:xenon:average complexity is ranked C
ERROR:xenon:module 'l10n_mx_account_tax_category/invoice.py' has a rank of C
failed
pylint Test There is an unknown failure, please try again
                        You can also give a reporter class, eg
mypackage.mymodule.MyReporterClass. [current: text]
-r <y_or_n>, --reports=<y_or_n>
Tells whether to display a full report or only the
messages [current: yes]
--msg-template=<template>
Template used to display messages. This is a python
new-style format string used to format the message
information. See doc for all details

There are no tests to show.