Hello,

Could anyone give me a brief, clear example of how to have a calculated field ?

I' m trying to have my first calculated field

I have 2 Date fields and I want my calculated field to be the difference in 
days between the 2 dates

How do I set that ?

The documentation says that "on_change" is an attribute of the filed, like this

Field.on_change

Does this mean that I should write this ?
fields.Numeric('duration', digits=(2,), on_change=someDatefield) ?

Can I trust the documentation on this ?

In the code of the sale.sale model, on_change is not used like that, but it' s 
quite complicated and I' ma  bit overwhelmed

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/19f48579-b67e-4e42-b3d0-108f7954904d%40googlegroups.com.

Reply via email to