Skip to Content
Menu
This question has been flagged
3 Replies
3431 Views

Hi Friends,

When i am installing rental module in Odoo9 then face such like error ->

AttributeError: 'str' object has no attribute 'strftime'

 invoice_date_str = data['date'].strftime(DEFAULT_SERVER_DATE_FORMAT) invoice_period_begin_str = data['period_begin'].strftime(DEFAULT_SERVER_DATE_FORMAT) invoice_period_end_str = data['period_end'].strftime(DEFAULT_SERVER_DATE_FORMAT)


Avatar
Discard
Best Answer

you will have to convert that date string in to strptime after that you can use strftime Convert string Date to datetime or conver string date to date format

Avatar
Discard

I assume this want be the only error which will arise.

Best Answer

The rental module from Akretion is for Version 8.0 and not 9.0. You will have to wait for the version 9.0 or forward port it yourself.

Avatar
Discard
Author

Thanks Ermin for giving me reply but just i want to migrate Odoo7 to Odoo9 rental module then i am facing such like error have any idea regarding this.

Related Posts Replies Views Activity
1
Jul 24
337
3
Jun 24
1253
2
Sep 23
1936
0
Jun 21
1123
1
Aug 24
1858