Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1216 Переглядів

Hi,


there is an issue I've encountered in our custom Odoo module. I've created a new HTML field within our model to store formatted content for quotations:

condition = fields.Html(string='Condition on the Quotation', translate=True)

I use Odoo's built-in HTML editor to format the content of this field, and it displays correctly when viewed in the odoo view like below:

Standard Assumptions, exceptions, and notes on scope of work:

  • Site and/or staging area(s) access must be suitable for unassisted standard pickup truck with long trailer
  • Non-winter conditions have been assumed (unless otherwise stated). Weather days are site dependent, general guidelines are: no tower...
  • Tower orientation with respect to magnetic north as dermined in the field
  • Painting, lighting, fencing, are not included in this quote (unless otherwise stated). Pricing assumes that all materials and options are awarded at the same time as the main portion of work.
  • It is the customer's responsibility to be aware of the limitations of tower designs for the intended site



The content is then referenced in our QWeb report template as follows:









While the report renders as expected in HTML format, I've noticed that the right column is not fully visible in the PDF output—it appears to be clipped off.

I have explored several solutions suggested in the forum, but none have resolved the issue.

Any guidance or recommendations you could offer would be greatly appreciated.

Best Regards



Аватар
Відмінити
Найкраща відповідь

Hi Paul,

I usually use bootstrap grid system (col-*) to do it and I also had a similar issue in the past.

Previously my code for grid layouting is like this:










Above results in either: (1) the 2 last col-* doesn't appear on PDF report, or (2) the PDF report got zoomed out to accomodate 24 columns (8+4+8+4) inside the width of the PDF.

So I do a workaround like this












Hope it helps or at least gives you a clue

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
вер. 24
1077
1
квіт. 24
1239
2
лип. 21
4389
1
груд. 24
1098
0
серп. 23
2467