Odoo Help

Welcome!

This community 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.

0

Filter to apply automatic action only to newly created elements

By
Alex Garel
on 12/19/13, 11:14 AM 1,413 views

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 ?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 12/19/13, 11:14 AM
Seen: 1413 times
Last updated: 3/16/15, 8:10 AM