Help

0

How to display signature in QWEB report's last page?

 

I want to display signature box at the last page of QWEB report (just before footer at right side). As i tried with add signature in footer it works fine, but it will leave space in every page in footer.

Any idea will be highly appreciated!

Thanks.

1 Commento
Avatar
Abbandona
Avatar
GGWP
-

Hi Jainesh Shah,
I have the same problem, how did you make it? Is it possible?

2 Risposte
0
Avatar
Ron Michael
Migliore risposta

Hi

If this is about putting the email signature from the user's profile into a report, you may use this approach:

<table border="1" style="width:100%;">
  <tr style="font-weight:bold;">
    <td>
        <div widget="html" t-field="user.signature"/>
     </td>
     <td></td>
  </tr>
</table>

Just adjust the alignment as desired.

If the report is existing you would need to use the correct inherit_id value and xpath

    <template id="report_purchaseorder_document" inherit_id="purchase.report_purchaseorder_document">
        <xpath expr="//div[@id='total']" position="after">
            <table border="1" style="width:100%;">
              <tr style="font-weight:bold;">
                <td>
                    <div widget="html" t-field="user.signature"/>
                 </td>
                 <td></td>
              </tr>
            </table>
        </xpath>
    </template>


Hopefully that helps.


-- Ron Michael

Achieve Without Borders, Philippines


Avatar
Abbandona
0
Avatar
Boubaker Abdallah
Migliore risposta

Hi

Is your signature in the form of a picture!

You can add a table in the last and employ one line and employ the image there

<table border="1" style="width:100%;"> 
  <tr style="font-weight:bold;">
    <td>
<img src='/module name/static/src/img/image name with extention' style="max-height: 45px;"/>
 </td> <td>Smith</td> </tr> </table>
<img src='/module name/static/src/img/image name with extention' style="max-height: 45px;"/>

I hope this should helpful for you ...! :)
Thanks & Regards,


3 Commenti
Avatar
Abbandona

Hello Bouabaker Abdallah, Thanks for the reply.

We have tried to add div at the end of content but it prints immediately after content.

But we want to print "Signature Box" just before footer.

For your reference we have attached file in my question.

Waiting for your assistance on this :)

Thanks!

Avatar
Boubaker Abdallah
-

it is necessary to create a new class like footer or header and put his css before the footer

look this

https://www.odoo.com/forum/help-1/question/how-to-create-div-in-qweb-that-is-always-at-the-bottom-of-the-page-72302

Thanks for suggestion.

I tried that your solution but i didn't get success because my content is dynamic.