Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aquih/fel_digifact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fel_digifact

Para referencia interna:

from odoo import fields

attr_qname = etree.QName("http://www.w3.org/2001/XMLSchema-instance", "schemaLocation")
nsdef = {'dtecomm':'https://www.digifact.com.gt/dtecomm'}
ns = "{https://www.digifact.com.gt/dtecomm}"

fecha = factura.invoice_date.strftime('%Y-%m-%d') if factura.invoice_date else fields.Date.context_today(factura).strftime('%Y-%m-%d')
hora = "07:00:00"
fecha_hora = fecha+'T'+hora

Informacion_COMERCIAL = etree.SubElement(Adenda, ns+"Informacion_COMERCIAL", {attr_qname: 'https://www.digifact.com.gt/dtecomm'}, nsmap=nsdef)
InformacionAdicional = etree.SubElement(Informacion_COMERCIAL, ns+"InformacionAdicional", Version="7.1234654163")
REFERENCIA_INTERNA = etree.SubElement(InformacionAdicional, ns+"REFERENCIA_INTERNA")
REFERENCIA_INTERNA.text = factura.journal_id.code+str(factura.id)
FECHA_REFERENCIA = etree.SubElement(InformacionAdicional, ns+"FECHA_REFERENCIA")
FECHA_REFERENCIA.text = fecha_hora
VALIDAR_REFERENCIA_INTERNA = etree.SubElement(InformacionAdicional, ns+"VALIDAR_REFERENCIA_INTERNA")
VALIDAR_REFERENCIA_INTERNA.text = "VALIDAR"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages