Warning: include_once(/home/favoledo/robertozanardo.com/wp-content/sunrise.php): Failed to open stream: No such file or directory in /home/favoledo/robertozanardo.com/wp-includes/ms-settings.php on line 52

Warning: include_once(): Failed opening '/home/favoledo/robertozanardo.com/wp-content/sunrise.php' for inclusion (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') in /home/favoledo/robertozanardo.com/wp-includes/ms-settings.php on line 52
Formato date in viste e report - Odoo e Soluzioni Open Source

Formato date in viste e report

Per cambiare il formato di visualizzazione nelle viste e nei report di Odoo possiamo utilizzare questi due metodi.

Per le viste (form o tree):

<field name="data" widget="date" options="{'format': 'dd/MM/yyyy'}"/>

Per i report (qweb):

<span t-esc="context_timestamp(line.data_carico).strftime('%d-%m-%Y')"/>

 







Lascia un commento