← Back to team overview

openerp-india team mailing list archive

[Bug 980689] [NEW] trunk-report-rml2pdf no use attr Parent in tag paraStyle

 

Public bug reported:

The specification reportlab for the tag  "paraStyle" is an attribute of "parent." But in your code, it is not used.
For some reason, always use the default style of Normal, although you can use is a certain style to it.

..\openerp\report\render\rml2pdf\trml2pdf.py
Now:
self.styles_obj[sname] = reportlab.lib.styles.ParagraphStyle(sname, self.default_style["Normal"], **self.styles[sname])

But should (if present parent):
self.styles_obj[sname] = reportlab.lib.styles.ParagraphStyle(sname, self.styles_obj[parentname], **self.styles[sname])

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


** Tags: report

** Description changed:

  The specification reportlab for the tag  "paraStyle" is an attribute of "parent." But in your code, it is not used.
  For some reason, always use the default style of Normal, although you can use is a certain style to it.
  
+ ..\openerp\report\render\rml2pdf\trml2pdf.py
  Now:
  self.styles_obj[sname] = reportlab.lib.styles.ParagraphStyle(sname, self.default_style["Normal"], **self.styles[sname])
  
  But should (if present parent):
  self.styles_obj[sname] = reportlab.lib.styles.ParagraphStyle(sname, self.styles_obj[parentname], **self.styles[sname])

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

Title:
  trunk-report-rml2pdf no use attr Parent in tag paraStyle

Status in OpenERP Server:
  New

Bug description:
  The specification reportlab for the tag  "paraStyle" is an attribute of "parent." But in your code, it is not used.
  For some reason, always use the default style of Normal, although you can use is a certain style to it.

  ..\openerp\report\render\rml2pdf\trml2pdf.py
  Now:
  self.styles_obj[sname] = reportlab.lib.styles.ParagraphStyle(sname, self.default_style["Normal"], **self.styles[sname])

  But should (if present parent):
  self.styles_obj[sname] = reportlab.lib.styles.ParagraphStyle(sname, self.styles_obj[parentname], **self.styles[sname])

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


Follow ups

References