summaryrefslogtreecommitdiff
path: root/indoteknik_custom/report
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2025-12-10 13:17:29 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2025-12-10 13:17:29 +0700
commit8e6e3f900daac1b56cc7e101c7c491ef7eb320f5 (patch)
treefffecbd1a7001599f5ba9b8d6b5fcd1226481429 /indoteknik_custom/report
parentb8e691bd016f5373d1fae2d151b4a5e8d75a4ec2 (diff)
fix print SO
Diffstat (limited to 'indoteknik_custom/report')
-rw-r--r--indoteknik_custom/report/report_sale_order.xml22
1 files changed, 18 insertions, 4 deletions
diff --git a/indoteknik_custom/report/report_sale_order.xml b/indoteknik_custom/report/report_sale_order.xml
index d1a6de28..608d909c 100644
--- a/indoteknik_custom/report/report_sale_order.xml
+++ b/indoteknik_custom/report/report_sale_order.xml
@@ -1,6 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
+ <record id="paperformat_saleorder_custom_indoteknik" model="report.paperformat">
+ <field name="name">A4 Sale Order Indoteknik (Custom)</field>
+ <field name="default" eval="True" />
+ <field name="format">A4</field>
+ <field name="page_height">0</field>
+ <field name="page_width">0</field>
+ <field name="orientation">Portrait</field>
+ <field name="margin_top">45</field> <field name="margin_bottom">28</field>
+ <field name="margin_left">7</field>
+ <field name="margin_right">7</field>
+ <field name="header_line" eval="False" />
+ <field name="header_spacing">35</field>
+ <field name="dpi">90</field>
+ </record>
+
<record id="action_report_saleorder_website" model="ir.actions.report">
<field name="name">Quotation / Order (Website)</field>
<field name="model">sale.order</field>
@@ -12,9 +27,10 @@
('Quotation - %s - %s - %s' % (object.partner_id.name, object.name, object.create_date.strftime('%d/%m/%Y')))
or 'Order - %s - %s - %s' % (object.partner_id.name, object.name, object.create_date.strftime('%d/%m/%Y')))
</field>
-
<field name="binding_model_id" ref="model_sale_order"/>
<field name="binding_type">report</field>
+
+ <field name="paperformat_id" ref="paperformat_saleorder_custom_indoteknik"/>
</record>
</data>
@@ -86,12 +102,10 @@
</div>
</div>
- <!-- Is there a discount on at least one line? -->
<t t-set="display_discount" t-value="any(l.discount for l in doc.order_line)"/>
<table class="table table-sm o_main_table">
- <!-- In case we want to repeat the header, remove "display: table-row-group" -->
- <thead style="display: table-row-group">
+ <thead style="display: table-header-group">
<tr>
<th name="th_description" class="text-left">Description</th>
<th name="th_quantity" class="text-right">Quantity</th>