Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4347 Переглядів

I have a Custom module, that has a data that changes as time goes on, and i wish to change that data before its gets viewed. How can i achieve this in the easiest way?

Аватар
Відмінити
Найкраща відповідь

make it a functional field, the value of that type of field is calculated on the fly, you give it a function name in your class and the return value of that function is the field value (it actually has to return a dictionary of values so that it works in tree views as well as form views) there is some documentation on them here: https://doc.openerp.com/v6.0/developer/2_5_Objects_Fields_Methods/field_type.html/#functional-fields the main non-obvious trick is that the function definition has to be above the field definition (before the _columns={} bit)

Аватар
Відмінити
Найкраща відповідь

Check example of Functional Field. link text

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
квіт. 24
1822
1
серп. 22
2647
0
трав. 17
7301
1
бер. 15
3800
0
груд. 24
688