How to update function field on button click

Asked by anuradha

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:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

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

Revision history for this message
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

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#3

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.