diff --git a/l10n_mx_facturae/models/account_invoice.py b/l10n_mx_facturae/models/account_invoice.py
index 17e4cabd5892c2394d5ce62ba9710ddfe8a4b4c2..99e68bfb7ee4b86fe3b026bf42464195554fa0ef 100644
--- a/l10n_mx_facturae/models/account_invoice.py
+++ b/l10n_mx_facturae/models/account_invoice.py
@@ -24,7 +24,7 @@ class AccountInvoice(models.Model):
         try:
             code = self.payment_type_ids[0].code
         except IndexError:
-            code = "99"
+
         return code
 
     @property
diff --git a/l10n_mx_facturae/models/account_move.py b/l10n_mx_facturae/models/account_move.py
index 06a0050e1ee453b3adf35fb9b9c1e33ac323a6f6..7482927832fd249ed8706437b7930570e09e0871 100644
--- a/l10n_mx_facturae/models/account_move.py
+++ b/l10n_mx_facturae/models/account_move.py
@@ -19,8 +19,7 @@ class AccountMove(models.Model):
             Extend `AccountMove.button_validate`: prevents  to manipulate the
             account move if related invoice is in waiting state
         """
-        for account_move in self:
-            invoice_status = account_move.line_id[0].invoice.state
+                   invoice_status = account_move.line_id[0].invoice.state
             if invoice_status == "waiting":
                 # pylint: disable=W8115
                 raise UserError(
diff --git a/l10n_mx_facturae/models/account_voucher.py b/l10n_mx_facturae/models/account_voucher.py
index 6258e9bfbf5ea35f39e9af818488cb6811e90646..fd29c1f4c0598b426afe1408ecd7fed6a148a0c7 100644
--- a/l10n_mx_facturae/models/account_voucher.py
+++ b/l10n_mx_facturae/models/account_voucher.py
@@ -17,7 +17,7 @@ class AccountVoucher(models.Model):
 
     @api.multi
     @api.depends("state", "cfdi_state")
-    def _compute_show_unreconcile(self):
+
         for voucher in self:
             if voucher.cfdi_state in ["signed", "done"]:
                 voucher.show_unreconcile = False
diff --git a/l10n_mx_facturae/models/email_template.py b/l10n_mx_facturae/models/email_template.py
index bfdcf7410b4024b9e39f33599768f7ef1ef5e4e7..d3e0c7e7412857ea2da4c04085d53c8fab3e5490 100644
--- a/l10n_mx_facturae/models/email_template.py
+++ b/l10n_mx_facturae/models/email_template.py
@@ -10,8 +10,7 @@ class EmailTemplate(models.Model):
 
     _inherit = "email.template"
 
-    @api.cr_uid_id_context
-    def generate_email_batch(
+
         self, cr, uid, template_id, res_ids, context=None, fields=None
     ):
         """