Community mailing list archives

Re: Change format date

Stephen Mack
- 02/10/2015 08:15:59
Or you can use the Odoo FormatLang: <p t-esc="formatLang(o.date_order,date=True)"/>


On Tue, Feb 10, 2015 at 10:09 AM, Stephen Mack <> wrote:
You can use the python syntax:   <p t-field="o.date_order[:10]"/>

Best wishes,


On Tue, Feb 10, 2015 at 9:57 AM, Roger Moreno <> wrote:


I need modify date format  02/01/2015 00:00:00 to 02/01/2015 in Qweb, the report is sale_order, thanks.


                <div t-if="o.date_order" class="col-xs-3">

                  <strong t-if="o.state not in [''draft'',''sent'']">Date Ordered:</strong>

                  <strong t-if="o.state in [''draft'',''sent'']">Quotation Date:</strong>

                  <p t-field="o.date_order"/>


Post to: