diff options
| -rw-r--r-- | indoteknik_custom/models/coretax_fatur.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indoteknik_custom/models/coretax_fatur.py b/indoteknik_custom/models/coretax_fatur.py index 9b1544d3..ce94306f 100644 --- a/indoteknik_custom/models/coretax_fatur.py +++ b/indoteknik_custom/models/coretax_fatur.py @@ -3,6 +3,9 @@ import xml.etree.ElementTree as ET from xml.dom import minidom import base64 import re +import logging + +_logger = logging.getLogger(__name__) class CoretaxFaktur(models.Model): @@ -72,8 +75,9 @@ class CoretaxFaktur(models.Model): ET.SubElement(tax_invoice, 'BuyerEmail').text = invoice.partner_id.email or '' ET.SubElement(tax_invoice, 'BuyerIDTKU').text = buyerIDTKU + _logger.info(" invoice down_payments: %s", invoice.down_payment) # Handle product lines based on down_payments flag - if down_payments and invoice.invoice_origin: + if invoice.down_payment and invoice.invoice_origin: # Get from sale.order.line for down payment sale_order = invoice.sale_id if sale_order: |
