← Back to team overview

openerp-india team mailing list archive

[Bug 1085027] [NEW] 7.0 trunk pdf report generation fails when company uses all address lines

 

Public bug reported:

How to replicate:

Settings > Companies > Companies 'General Info'

Enter a company address which uses all address lines (first and second
line).

click on the 'Preview Header / Footer' button.

Result: pdf generation fails with error message (window pop-up) '... not
enough space'.

This makes it impossible to generate any pdf report (for instance print
a sales order).

Fix:

Settings > Companies > Companies 'Header / Footer'

Change to the RML code:
-------
RML Header
...
  <!-- page header -->
            <lines>1.3cm 27.7cm 20cm 27.7cm</lines>
            <drawRightString x="20cm" y="27.8cm">[[ company.rml_header1 ]]</drawRightString>
            <drawString x="1.3cm" y="27.4cm">[[ company.partner_id.name ]]</drawString>
            <place x="1.3cm" y="24.8cm" height="2.55cm" width="15.0cm">
                <para style="main_header">[[ display_address(company.partner_id) or  '' ]]</para>
            </place>
            <drawString x="1.3cm" y="25.0cm">Phone:</drawString>
            <drawRightString x="7cm" y="25.0cm">[[ company.partner_id.phone or '' ]]</drawRightString>
            <drawString x="1.3cm" y="24.6cm">Mail:</drawString>
            <drawRightString x="7cm" y="24.6cm">[[ company.partner_id.email or '' ]]</drawRightString>
            <lines>1.3cm 24.5cm 7cm 24.5cm</lines>
....
------

error is provoked as long as   <place x="1.3cm" y="25.8cm" height="1.55cm" width="15.0cm">
the height attribute is set to 1.55cm.

The additional y position changes were necessary to avoid 'line within
line printing'

Best Regards,
Eckhard Schwarzat.

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


** Tags: 7.0 trunk

-- 
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/1085027

Title:
  7.0 trunk pdf report generation fails when company uses all address
  lines

Status in OpenERP Server:
  New

Bug description:
  How to replicate:

  Settings > Companies > Companies 'General Info'

  Enter a company address which uses all address lines (first and second
  line).

  click on the 'Preview Header / Footer' button.

  Result: pdf generation fails with error message (window pop-up) '...
  not enough space'.

  This makes it impossible to generate any pdf report (for instance
  print a sales order).

  Fix:

  Settings > Companies > Companies 'Header / Footer'

  Change to the RML code:
  -------
  RML Header
  ...
    <!-- page header -->
              <lines>1.3cm 27.7cm 20cm 27.7cm</lines>
              <drawRightString x="20cm" y="27.8cm">[[ company.rml_header1 ]]</drawRightString>
              <drawString x="1.3cm" y="27.4cm">[[ company.partner_id.name ]]</drawString>
              <place x="1.3cm" y="24.8cm" height="2.55cm" width="15.0cm">
                  <para style="main_header">[[ display_address(company.partner_id) or  '' ]]</para>
              </place>
              <drawString x="1.3cm" y="25.0cm">Phone:</drawString>
              <drawRightString x="7cm" y="25.0cm">[[ company.partner_id.phone or '' ]]</drawRightString>
              <drawString x="1.3cm" y="24.6cm">Mail:</drawString>
              <drawRightString x="7cm" y="24.6cm">[[ company.partner_id.email or '' ]]</drawRightString>
              <lines>1.3cm 24.5cm 7cm 24.5cm</lines>
  ....
  ------

  error is provoked as long as   <place x="1.3cm" y="25.8cm" height="1.55cm" width="15.0cm">
  the height attribute is set to 1.55cm.

  The additional y position changes were necessary to avoid 'line within
  line printing'

  Best Regards,
  Eckhard Schwarzat.

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


Follow ups

References