How to update function field on button click

Asked by anuradha on 2013-09-28

How can i update function field on button click. I want to display names of files in a directory on button click. i will get file names in a list . how can i show that in xml using function field ? Any one please help

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Web (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
2013-10-03
Last reply:
2013-10-09

Fields.function will always get called on button call by deault!
Is the field storable?

anuradha (anuradha-g) said : #2

I didnt get you. How button calls Fields.function bydefault?
Please check my code an please explain to me how can i achive this.
The link is give below

http://help.openerp.com/question/32498/how-to-update-function-field-on-button-click/?answer=32499#post-id-32499

Anuradha,

Sorry for the late response.

When your button is clicked, it calles create()/write() and this will trigger the functional field's method.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask anuradha for more information if necessary.

To post a message you must log in.