Skip to content

Instantly share code, notes, and snippets.

View gricelsepulveda's full-sized avatar
🐱
Coding!

Gricel Dayhanna Sepúlveda Rozas gricelsepulveda

🐱
Coding!
View GitHub Profile
@gricelsepulveda
gricelsepulveda / file.txt
Created January 18, 2016 17:10
Ejemplo de codeo de descarga de factura en txt, en modulo account.invoice
#ANADIDOS EN .PY CON EL FIN DE INGRESAR LOS CAMPOS A LA BD###
#############################################################
class InvoiceMaryun(models.Model):
_inherit = 'account.invoice'
txt_filename = fields.Char()
txt_binary = fields.Binary()
@api.one
def generate_file(self):