0

We are trying to get the current date in the automation rules in Odoo 17 using code. In the comments section it's mentioned that we can use python datetime libraries, however it seems that today() or now() functions are not accessbile.

May you suggest a way.

datetime.today()
datetime.now()

2 Answers 2

0
datetime.datetime.today().date()
Sign up to request clarification or add additional context in comments.

Comments

0

Try:

today_date = datetime.datetime.now()

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.