I am posting messages during the execution, but want to show the complete duration.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1958
Views
Add this to the start of your action:
start_time = datetime.datetime.now()
Add this to the end:
end_time = datetime.datetime.now()
record.message_post("This action took %d seconds!" % (end_time - start_time).seconds)
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up