【发布时间】:2018-03-25 11:34:19
【问题描述】:
当我打印 qweb 报告时,我想在日期字段之间添加更多空格:Day - Month - Year
怎么办?
当前代码:
<span t-field="o.con_date" t-field-options="{"format": "dd MM yyyy"}"></span>
【问题讨论】:
标签: xml xhtml odoo odoo-10 qweb
当我打印 qweb 报告时,我想在日期字段之间添加更多空格:Day - Month - Year
怎么办?
当前代码:
<span t-field="o.con_date" t-field-options="{"format": "dd MM yyyy"}"></span>
【问题讨论】:
标签: xml xhtml odoo odoo-10 qweb
这解决了问题。 我在这里所做的很简单(以前没有想过)。
我已将dd、mm 和yyyy 分开。
&#160; 用于在它们之间创建空间。
如果你需要额外的空间,你可以添加更多&#160;
<span t-field="o.con_date" t-field-options="{&quot;format&quot;: &quot;dd &quot;}"/>&#160;<span t-field="o.con_date" t-field-options="{&quot;format&quot;: &quot;MM &quot;}"/>&#160;<span t-field="o.con_date" t-field-options="{&quot;format&quot;: &quot;yyyy &quot;}"/>&#160;
【讨论】: