Follow-up from "fix(account.voucher): Pagos a una factura en el mismo día"
The following discussion from !79 (merged) should be addressed:
-
@agb80 started a discussion:
Correcciones a los siguientes mensajes del lint:
************* Module l10n_mx_facturae l10n_mx_facturae/views/account_invoice.xml:40: [W7937(xml-attribute-translatable), ] The xml attribute is missing the translation="off" tag xml_id l10n_mx_facturae/views/account_invoice.xml:41: [W7937(xml-attribute-translatable), ] The xml attribute is missing the translation="off" tag xml_id l10n_mx_facturae/views/account_invoice.xml:42: [W7937(xml-attribute-translatable), ] The xml attribute is missing the translation="off" tag xml_id l10n_mx_facturae/views/account_voucher.xml:41: [W7937(xml-attribute-translatable), ] The xml attribute is missing the translation="off" tag xml_id l10n_mx_facturae/views/account_voucher.xml:42: [W7937(xml-attribute-translatable), ] The xml attribute is missing the translation="off" tag xml_id ************* Module l10n_mx_facturae.models.account_invoice l10n_mx_facturae/models/account_invoice.py:422: [R1710(inconsistent-return-statements), AccountInvoiceLine.export_invoice_line_for_xml.process_tax] Either all return statements in a function should return an expression, or none of them should. l10n_mx_facturae/models/account_invoice.py:461: [C1801(len-as-condition), AccountInvoiceLine.export_invoice_line_for_xml] Do not use `len(SEQUENCE)` to determine if a sequence is empty ************* Module l10n_mx_facturae.models.account_move l10n_mx_facturae/models/account_move.py:26: [W8115(translation-contains-variable), AccountMove.button_validate] Translatable term in ""Can't post the entry %s the related invoice is in waiting state to cancel" % account_move.name" contains variables. Use _("Can't post the entry %s the related invoice is in waiting state to cancel") % account_move.name instead ************* Module l10n_mx_facturae.report.account_invoice l10n_mx_facturae/report/account_invoice.py:11: [R0201(no-self-use), Parser._qrcode_string] Method could be a function ************* Module l10n_mx_facturae.report.account_voucher l10n_mx_facturae/report/account_voucher.py:10: [E1003(bad-super-call), Parser.__init__] Bad first argument 'self.__class__' given to super() l10n_mx_facturae/report/account_voucher.py:13: [R0201(no-self-use), Parser._datosqr] Method could be a function