Odoo 도움말

1

0
1 응답
1
Avatar

Niyas Raphy India

--Niyas Raphy--
26373
| 7 7 11
Wayanad, Kerala, India
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to connect :  niyasraphyk@gmail.com

Twitter:https://twitter.com/niyasraphy
LinkedIn: https://www.linkedin.com/in/niyasraphy/
FB:https://www.facebook.com/niyasraphy123
Whatsapp : +917736136763
Happy to help :)

Niyas Raphy India
19. 8. 21. 오전 5:00

Hi,

In Odoo version 12, accessing a fields.Date or fields.Datetime value will no longer return a string with the representation of the date but a native python date(time) object. So you have to update the code accordingly here in Odoo12.

See: Framework change on Date and Datetime fields for v12

Thanks

1 코멘트
rehmanabdullah355@gmail.com Pakistan
19. 8. 21. 오전 5:24

Thanks for replying sir! I am trying to understand whats written in the link but just to be sure can you tell me what necessary change will be made in the line below

current_date = datetime.strptime(date_from, '%Y-%m-%d').date().month

질문하기
Keep Informed
1 팔로워
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now