如何使用HTML CSS

时间:2017-07-05 08:47:16

标签: html css odoo qweb

enter image description here我是odoo和HTML& css的新手,我想要的只是在我的qutation中添加一个标记,这样你的用户就不需要在每个引号中加盖标记。 ..任何人都可以帮助我,引导我走上解决问题的道路

感谢您的帮助。

    <table class="table3">
        <tr>
            <td style="width:45%;border-style:none;">

                <table style="width:60%;">
                    <tr>
                        <td style="font-size:14px;margin-left:4px; margin-right:auto;border: 2px"><br/>Bon pour accord le <br/><br/><br/> <br/><br/><br/>Nom, Qualité et signature ou cachet du client<br/><br/></td> 
                    </tr>


                </table>

            </td>
            <td>
                <table id="t01">
                    <tr>
                        <td style="width:30%;font-size:12px"><b>Total DA HT</b></td>
                        <td>225,00</td>

                    </tr>
                    <tr>
                        <td style="width:30%; font-size:12px"><b>Total TVA</b></td>
                        <td>55.10</td>
                    </tr>
                    <tr>
                        <td style="width:30%;font-size:12px"><b>Droit de timbre</b></td>
                        <td>0.0</td>
                    </tr>
                    <tr>
                        <td style="width:30%;font-size:12px"><b>Total DA TTC</b></td>
                        <td>350</td>
                    </tr>
                </table>

            </td>
        </tr>
    </table>


    <div class="footer">
            <br/><br/>
                  <div style="text-align:center">
<hr style="border: 1px solid #73ad20">

                            <p style="font-family:KacstFarsi; color:green; font-size:9px">N° R.C.: 1003703 -10 B /00/16//N.I.F.: 001016100370377</p>
                            <p style="font-family:KacstFarsi; color:green; font-size:9px">AGB BANQUE RIB: 03200001500720120844Dely-Brahim /N° Article 16500743415</p>


                    <small>
                        <span>Page</span>
                        <span class="page" />
                        /
                        <span class="topage" />
                    </small>
                  </div>
</div>

1 个答案:

答案 0 :(得分:0)

您可以使用签名图片(res.users)的字段扩展fields.binary并扩展设置视图(右上角&#34;登录&#34;设置)。因此每个用户都可以设置自己的签名图像。小提示:res.users有点特别。您需要将该字段实现为用户可写字段(Odoo example)。在我的示例中,该字段称为sign_image

在此之后,您可以在QWeb报告中使用此新字段,例如:

<t t-if="o.user_id.sign_image">
    <div t-field="o.user_id.sign_image" t-field-options='{"widget": "image"}'/>
</t>

其中o是打印的实际记录(报价单),o.user_id是销售人员。如果您想使用正在打印的用户而不是销售员,请使用o.env.user.sign_image