From d0edd204c0305ea84847e71271a07f02d896ce41 Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Mon, 13 Sep 2010 18:58:41 +0530
Subject: [PATCH] [IMP]: Cost structure report with internal header.
bzr revid: rch_open_erp-20100913132841-p03ebf1pot6xp2dj
---
addons/mrp/report/custom_default.xsl | 57 ++++++++++++++++++++++++----------
addons/mrp/report/custom_rml.xsl | 12 ++++---
addons/mrp/report/price.py | 7 +++--
3 files changed, 51 insertions(+), 25 deletions(-)
diff --git a/addons/mrp/report/custom_default.xsl b/addons/mrp/report/custom_default.xsl
index ce9ea18..103128e 100644
--- a/addons/mrp/report/custom_default.xsl
+++ b/addons/mrp/report/custom_default.xsl
@@ -1,7 +1,7 @@
- Axair
+
Open ERP Report
1cm
1cm
@@ -11,26 +11,49 @@
a4_letter
+
+
+
+
+
+
+
+
+
+ /
+
+ 1.3cm 28.1cm 20cm 28.1cm
+
+
+
+
+
+
+
+
+
+
+
+
+
+ /
+
+ 1.3cm 28.1cm 20cm 28.1cm
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
diff --git a/addons/mrp/report/custom_rml.xsl b/addons/mrp/report/custom_rml.xsl
index 96d4f00..e76ec2e 100644
--- a/addons/mrp/report/custom_rml.xsl
+++ b/addons/mrp/report/custom_rml.xsl
@@ -4,7 +4,7 @@
-
+
@@ -19,11 +19,11 @@
-
+
-
+
@@ -31,9 +31,10 @@
-
+
+
@@ -42,9 +43,10 @@
+
-
+
diff --git a/addons/mrp/report/price.py b/addons/mrp/report/price.py
index f0fb1f3..762d1e4 100644
--- a/addons/mrp/report/price.py
+++ b/addons/mrp/report/price.py
@@ -18,7 +18,7 @@
# along with this program. If not, see .
#
##############################################################################
-
+import time
import ir
import pooler
from report.interface import report_rml
@@ -95,12 +95,13 @@ class report_custom(report_rml):
xml = ''
config_start = """
- 09/09/2005
+ %s
+ %s
210.00mm,297.00mm
595.27
841.88
55.00mm,55.00mm, 20.00mm, 22.00mm, 22.00mm, 25.00mm
- """
+ """ % (time.strftime('%m/%d/%Y %H:%M'),user_pool.browse(cr, uid, uid).company_id.name)
config_stop = """
Generated by OpenERP
--
1.7.10.4