~xrg/openobject-doc/trunk-xrg

« back to all changes in this revision

Viewing changes to source/developer/2_6_views_events/views/view_intro.rst

  • Committer: TruongSinh Tran
  • Date: 2009-07-17 18:59:45 UTC
  • Revision ID: truongsinh@vipescoserver-20090717185945-ajjp3zso6xh5jddm
[FIX]private issue

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Introduction to Views
 
2
=====================
 
3
 
 
4
As all data of the program is stored in objects, as explained in the Objects section, how are these objects exposed to the user ? We will try to answer this question in this section.
 
5
 
 
6
First of all, let's note that every resource type uses its own interface. For example, the screen to modify a partner's data is not the same as the one to modify an invoice.
 
7
 
 
8
Then, you have to know that the Open ERP user interface is dynamic, it means that it is not described "statically" by some code, but dynamically built from XML descriptions of the client screens.
 
9
 
 
10
From now on, we will call these screen descriptions views.
 
11
 
 
12
A notable characteristic of these views is that they can be edited at any moment (even during the program execution). After a modification to a displayed view has occurred, you simply need to close the tab corresponding to that 'view' and re-open it for the changes to appear. 
 
13
 
 
14
Views principles
 
15
-----------------
 
16
 
 
17
Views describe how each object (type of resource) is displayed. More precisely, for each object, we can define one (or several) view(s) to describe which fields should be drawn and how.
 
18
 
 
19
There are two types of views:
 
20
 
 
21
   #. form views
 
22
   #. tree views 
 
23
 
 
24
.. note:: Since Open ERP 4.1, form views can also contain graphs. 
 
25
 
 
26