Giter Site home page Giter Site logo

Alignment in report about l10n-netherlands HOT 4 CLOSED

woepwoep avatar woepwoep commented on July 28, 2024
Alignment in report

from l10n-netherlands.

Comments (4)

woepwoep avatar woepwoep commented on July 28, 2024

the above screenshot is from this module: l10n_nl_tax_declaration_reporting (author Onestein)

from l10n-netherlands.

lfreeke avatar lfreeke commented on July 28, 2024

@woepwoep for time being you can solve it by changing the header spacing and top margin in the paper format at settings.

from l10n-netherlands.

espo-tony avatar espo-tony commented on July 28, 2024

Hi,
I'm afraid this issue comes with the Odoo basic mechanism itself.
Basically, in Odoo and using QWeb report engine, the space reserved to the header is statically defined by the paper format used by the current report. As the "static definition" would suggest, there is no way to dynamically adapt this space to what is really needed by the user. Default settings consider a space which is acceptable in most cases but that could not be in specific cases like the one posted above (in such example, we can see that the company's name is split due to its lenght).

This issue is also common to basic Odoo reports (e.g.: invoice report) and should be solved case by case as part of the custom system settings just after the installation.
As Ifreeke suggested, the correct way to configure the header spacing in QWeb reports is to change the header spacing and top margin in the paper format settings. This can be performed by an user with technical features permissions through the menu "Reports" - "Technical" - "Reports" - "Paper Format" and choosing the paper format related to the report which one wants to fix (for this report, it's "European A4"). One can set the parameters choosing values that best suite its own installation.

Any other hardcode solution, such like adding a padding to the body of the report, enlarging the space reserved to the other, and so on, would fix the problem just for this specific case.

from l10n-netherlands.

woepwoep avatar woepwoep commented on July 28, 2024

thx all for explaining the situation at hand.
best regards, Ron

from l10n-netherlands.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.