Community mailing list archives

community@mail.odoo.com

Re: Change format date

by
Stephen Mack
- 02/10/2015 08:09:54
You can use the python syntax:   <p t-field="o.date_order[:10]"/>

Best wishes,

--Stephen

On Tue, Feb 10, 2015 at 9:57 AM, Roger Moreno <rogerf_moreno@hotmail.com> wrote:

Hello,

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"/>

                </div>

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe