如何在OpenERP的POS收据中添加公司徽标?

问题描述 投票:3回答:2

我想在Openerp 6.1.1中打印销售点收据时打印公司徽标。我在pos.xml文件中添加了以下代码:

<img width="60" height="30" border="0" src="http://localhost:8069/web/static/src/img/logo.png"></img>

但是,如果我更改公司的徽标,它将不会影响收据徽标。如何在POS收据中添加公司的动态徽标?

xml image openerp
2个回答
1
投票

以下是在报告上打印徽标的RML标记。

 <image x="1.3cm" y="27.6cm" height="40.0" >[[ company.logo or removeParentNode('image') ]]</image>

这里公司是repeatin的变量,所以你可以找到相应的字段并将其映射到[[]]之间

希望这有助于,谢谢


1
投票

将此标记写入rml文件的标题中

<pagetemplate id="first"> 
  <frame id="first" x1="39.0" y1="20.0" width="770" height="450"/> 
  <pagegraphics> 
    <image x="5.5cm" y="17.0cm" height="90.0">[[company.logo]] </image>. 
  </pagegraphics> 
</pagetemplate>
© www.soinside.com 2019 - 2024. All rights reserved.