Skip to Content
Menu
This question has been flagged
1 Reply
716 Views

hi in odoo xls 11 , date is printing like this 

date_str = "% s To% s"% (date_from, date_to)
('2020-11-11',)  To ('2021-04-29',)

sheet.write_merge (0, 0, 0, 5, 'PO client:' + date_str, style1)




Avatar
Discard
Author

how to remove the brackets

Best Answer

Hi,

Its simple, you can try this,

output = str(date_str).replace("(",  "").replace(")",  "").replace("'",  "").replace(",",  "") and then print the output

sheet.write_merge (0, 0, 0, 5, 'PO client:' + output, style1)
Hope it helps,

Thanks

Avatar
Discard