← Back to team overview

openerp-india team mailing list archive

[Bug 933571] [NEW] Some python time function not working in Open Office report designer

 

Public bug reported:

I'm currently writing new reports using the Open Office designer. I need
to display the current date. I tried a few things according to this
documentation:
http://doc.openerp.com/v6.0/developer/3_11_reports/11_1_openoffice_report.html
#dynamic-content-in-openoffice-reports

As a result,

[[ time.ctime() ]] does york correctly and output the date and time in
the report.

BUT, [[ time.strftime(time.ctime()[0:10]) ]] or [[
time.strftime(time.ctime()[-4:]) ]] to prints only date (that would be
handy) doesn't work and is output as is,  as normal text in the report.

** Affects: openobject-addons
     Importance: Undecided
         Status: New


** Tags: designer dynamic function office oo open python report time

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/933571

Title:
  Some python time function not working in Open Office report designer

Status in OpenERP Addons (modules):
  New

Bug description:
  I'm currently writing new reports using the Open Office designer. I
  need to display the current date. I tried a few things according to
  this documentation:
  http://doc.openerp.com/v6.0/developer/3_11_reports/11_1_openoffice_report.html
  #dynamic-content-in-openoffice-reports

  As a result,

  [[ time.ctime() ]] does york correctly and output the date and time in
  the report.

  BUT, [[ time.strftime(time.ctime()[0:10]) ]] or [[
  time.strftime(time.ctime()[-4:]) ]] to prints only date (that would be
  handy) doesn't work and is output as is,  as normal text in the
  report.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/933571/+subscriptions


Follow ups

References