Skip to content
Snippets Groups Projects
Commit f177c842 authored by Reviewer Intergaláctico's avatar Reviewer Intergaláctico
Browse files

asServer

parent e7919660
Branches 11.0-amubay
No related tags found
No related merge requests found
File added
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="invoice_tax_subreport" language="groovy" pageWidth="572" pageHeight="752" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
<property name="OPENERP_RELATIONS" value="[&apos;tax_line&apos;]"/>
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<queryString language="xPath">
<![CDATA[]]>
</queryString>
<field name="Nombre_del_Impuesto-name" class="java.lang.String">
<fieldDescription><![CDATA[/data/record/Lineas_de_Impuestos-tax_line/Impuesto-tax_id/Nombre_del_Impuesto-name]]></fieldDescription>
</field>
<field name="Descripcion_del_Impuesto-name" class="java.lang.String">
<fieldDescription><![CDATA[/data/record/Lineas_de_Impuestos-tax_line/Descripcion_del_Impuesto-name]]></fieldDescription>
</field>
<field name="Base-base" class="java.lang.Double">
<fieldDescription><![CDATA[/data/record/Lineas_de_Impuestos-tax_line/Base-base]]></fieldDescription>
</field>
<field name="Importe-amount" class="java.lang.Double">
<fieldDescription><![CDATA[/data/record/Lineas_de_Impuestos-tax_line/Importe-amount]]></fieldDescription>
</field>
<field name="Tax_Description-name" class="java.lang.String">
<fieldDescription><![CDATA[/data/record/Tax_Lines-tax_line_ids/Tax_Description-name]]></fieldDescription>
</field>
<field name="Base-base2" class="java.lang.Double">
<fieldDescription><![CDATA[/data/record/Tax_Lines-tax_line_ids/Base-base]]></fieldDescription>
</field>
<field name="Amount-amount_total" class="java.lang.Double">
<fieldDescription><![CDATA[/data/record/Tax_Lines-tax_line_ids/Amount-amount_total]]></fieldDescription>
</field>
<background>
<band splitType="Stretch"/>
</background>
<detail>
<band height="15" splitType="Stretch">
<textField>
<reportElement x="277" y="0" width="121" height="14"/>
<textElement lineSpacing="Single"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{Tax_Description-name}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;#,##0.00-" isBlankWhenNull="true">
<reportElement x="403" y="0" width="73" height="14"/>
<textElement textAlignment="Right" lineSpacing="Single"/>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{Base-base2}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00;#,##0.00-" isBlankWhenNull="true">
<reportElement x="500" y="0" width="55" height="14"/>
<textElement textAlignment="Right" lineSpacing="Single"/>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{Amount-amount_total}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
......@@ -244,8 +244,9 @@ class ReportXml(models.Model):
report.write({'report_file': path})
report.create_action()
if not has_default:
raise UserError(_('No report has been marked as default! \
You need atleast one jrxml report!'))
pass
# raise UserError(_('No report has been marked as default! \
# You need atleast one jrxml report!'))
# Ensure the report is registered so it can be used immediately
# register_jasper_report(report.report_name, report.model)
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment