Skip to content

Commit

Permalink
[FIX] l10n_ar_afipws_fe: fix some flake8 errors (line too long)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-zanotti authored and jjscarafia committed Dec 29, 2020
1 parent 6e0279d commit 6923b73
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions l10n_ar_afipws_fe/models/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,12 @@ def get_related_invoices_data(self):
([52, 53], [51, 52, 53, 54, 88, 991]),
([1, 6, 51], [88, 991]),
([201, 206, 211], [91, 990, 991, 993, 994, 995]),
([202, 203], [201, 202, 203] if self.afip_fce_es_anulacion else [201, 91, 88, 988, 990, 991, 993, 994, 995, 996, 997]),
([207, 208], [206, 207, 208] if self.afip_fce_es_anulacion else [206, 91, 88, 988, 990, 991, 993, 994, 995, 996, 997]),
([212, 213], [211, 212, 213] if self.afip_fce_es_anulacion else [211, 91, 88, 988, 990, 991, 993, 994, 995, 996, 997]),
([202, 203], [201, 202, 203] if self.afip_fce_es_anulacion
else [201, 91, 88, 988, 990, 991, 993, 994, 995, 996, 997]),
([207, 208], [206, 207, 208] if self.afip_fce_es_anulacion
else [206, 91, 88, 988, 990, 991, 993, 994, 995, 996, 997]),
([212, 213], [211, 212, 213] if self.afip_fce_es_anulacion
else [211, 91, 88, 988, 990, 991, 993, 994, 995, 996, 997]),
]
available_codes = list(filter(lambda x: int(self.document_type_id.code) in x[0], code_rules))
available_codes = available_codes[0][1] if available_codes else []
Expand Down

0 comments on commit 6923b73

Please sign in to comment.