Python 如何在qweb中呈现字符串?
我正在尝试在qweb模板的元素上插入和删除值: 我的代码:Python 如何在qweb中呈现字符串?,python,openerp,odoo-9,qweb,Python,Openerp,Odoo 9,Qweb,我正在尝试在qweb模板的元素上插入和删除值: 我的代码: <img t-att-src="'/report/barcode/Code128/%s' %(str(order.sequence_number).zfill(18))" style="width:250px;height:50px;"/> <img t-att-src="'/report/barcode/Code128/*mycode*'"
<img t-att-src="'/report/barcode/Code128/%s' %(str(order.sequence_number).zfill(18))"
style="width:250px;height:50px;"/>
<img t-att-src="'/report/barcode/Code128/*mycode*'"
style="width:250px;height:50px;"/>
我正在尝试扩展pos收据以打印条形码。。。。
如果我这样做,它会工作,但我需要用格式化的序列代码替换mycode: