Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dany Lopez committed Dec 22, 2023
1 parent cd1f6ba commit ab038c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_ec_account_edi/models/sri_key_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class SriKeyType(models.Model):
cert_version = fields.Char(string="Version", readonly=True)

# Almacenar certificados por separado para no procesar el archivo p12 siempre
p_key = fields.Binary("Private Key", readonly=True, attachment=False, required=True,)
cert = fields.Binary("X509 Certificate", readonly=True, attachment=False, required=True,)
p_key = fields.Binary("Private Key", readonly=True, attachment=False, required=True, default='p_key')
cert = fields.Binary("X509 Certificate", readonly=True, attachment=False, required=True, default='cert')

@tools.ormcache("self.file_content", "self.password", "self.state")
def _decode_certificate(self):
Expand Down

0 comments on commit ab038c2

Please sign in to comment.