where to find the codes of various buttons used

Asked by Pravitha V on 2012-01-12

where are the 'save','clear','save&edit' buttons and its onclick functions defined?
someone please help...........

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo GTK Client (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Pravitha V
Solved:
Last query:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

Pravitha,

As the question belongs to client architecture, I have changed the category.

These buttons and the relevant click handlers are defined in the relevant widget's dialog creation.

For now, these buttons specifically come on one2many fields, and they are defined inside /bin/widget/view/form_gtk/one2many_list.py (Talking about GTK)

Hope this helps.
Thanks,
Serpent Consulting Services.
http://www.serpentcs.com

Revision history for this message
Pravitha V (pravithavarghese1) said :
#2

what about web client? where are these codes found in web client

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

Hello,

For v6.0 : addons/openerp/controllers/templates/openo2m.mako

For v 6.1 : addons/web/static/src/xml/base.xml

Thanks.