【问题标题】:Want to add more space between date field想要在日期字段之间添加更多空间
【发布时间】:2018-03-25 11:34:19
【问题描述】:

当我打印 qweb 报告时,我想在日期字段之间添加更多空格:Day - Month - Year

怎么办?

当前代码:

<span t-field="o.con_date" t-field-options="{&quot;format&quot;: &quot;dd MM yyyy&quot;}"></span>

【问题讨论】:

    标签: xml xhtml odoo odoo-10 qweb


    【解决方案1】:

    这解决了问题。 我在这里所做的很简单(以前没有想过)。

    我已将dd、mm 和yyyy 分开。

    &amp;#160; 用于在它们之间创建空间。 如果你需要额外的空间,你可以添加更多&amp;#160;

    &lt;span t-field="o.con_date" t-field-options="{&amp;quot;format&amp;quot;: &amp;quot;dd &amp;quot;}"/&gt;&amp;#160;&lt;span t-field="o.con_date" t-field-options="{&amp;quot;format&amp;quot;: &amp;quot;MM &amp;quot;}"/&gt;&amp;#160;&lt;span t-field="o.con_date" t-field-options="{&amp;quot;format&amp;quot;: &amp;quot;yyyy &amp;quot;}"/&gt;&amp;#160;

    【讨论】:

      猜你喜欢
      • 2015-09-20
      • 2019-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-20
      • 2019-10-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多