[IMP]: Cost structure report with internal header.
[odoo/odoo.git] / addons / mrp / report / price.py
index f0fb1f3..762d1e4 100644 (file)
@@ -18,7 +18,7 @@
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 ##############################################################################
-
+import time
 import ir
 import pooler
 from report.interface import report_rml
@@ -95,12 +95,13 @@ class report_custom(report_rml):
         xml = ''
         config_start = """
         <config>
-            <date>09/09/2005</date>
+            <date>%s</date>
+            <company>%s</company>
             <PageSize>210.00mm,297.00mm</PageSize>
             <PageWidth>595.27</PageWidth>
             <PageHeight>841.88</PageHeight>
             <tableSize>55.00mm,55.00mm, 20.00mm, 22.00mm, 22.00mm, 25.00mm</tableSize>
-            """
+            """ % (time.strftime('%m/%d/%Y %H:%M'),user_pool.browse(cr, uid, uid).company_id.name)
         config_stop = """
             <report-footer>Generated by OpenERP</report-footer>
         </config>