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 | etc.
I asked myself how to make a filter on an automatic action so that this action only applies to newly created elements (not on modification).
I first though of using a pre-filter, checking that id is False, but looking at the code, I've seen that on creation, actions with a pre-filter are ignored.
So for now the solution I have though of is checking that creation_time and modification time are the same. But I think you can set it as a domain filter, as domain filter match a field with a raw value, not a field with another field.
Anyone has an idea to do that ?
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
|Asked: 12/19/13, 11:14 AM|
|Seen: 1588 times|
|Last updated: 3/16/15, 8:10 AM|