number decorations
f"{1:04d}"
# '0001'
f'{100000:,}'
#'100,000'
str(datetime.today().year) + f"/{100:07d}"
#'2023/0000100'
this_date = '1402/12/11'
dt = re.findall( '([\d]{4})/([\d]{1,2})/([\d]{1,2})', this_date)
# [('1402', '12', '11')]
Odoo xml report
t-esc="'%.2f' % (1000)"
# 1000.00
t-esc="'{:,d}'.format(12345678)"
# 12,345,678
Views | |
---|---|
1 | Total Views |
1 | Members Views |
0 | Public Views |
Actions | |
---|---|
0 | Likes |
0 | Dislikes |
0 | Comments |
Share by mail
Please login to share this webpage by email.