Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1882 Visualizzazioni

I am using the py3o report engine library, I am creating a custom report... in my form I have date type fields that I cannot set as required... if any date type field is empty and I try to print, it gives this error...
assert isinstance(value, (date, datetime, time))

AssertionError


How can I print the fields even when they are empty? I put an example field inside this function for word...
py3o://function="format_datetime(o.date_office_observations,format='dd/MM/YYYY')"

Thanks, Odoo 14 community


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ago 22
2876
0
ago 20
3065
0
ott 24
1753
0
ago 24
1578
0
gen 24
2065