~openerp-community/openobject-doc/6.1

« back to all changes in this revision

Viewing changes to i18n/vi/source/developer/2_5_Objects_Fields_Methods/object_attributes.rst

  • Committer: TruongSinh Tran
  • Date: 2009-07-19 19:02:35 UTC
  • Revision ID: truongsinh@vipescoserver-20090719190235-fu3bxcrbpvwuk5h7
[FIX] build_i18n.py .. raw:: html

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
-----------------
23
23
 
24
24
.. i18n: The first line of the object definition will always be of the form::
25
 
 
26
 
        class name_of_the_object(osv.osv):
27
 
                _name = 'name.of.the.object'
28
 
                _columns = { ... }
29
 
                ...
30
 
        name_of_the_object()
31
 
 
32
 
        .. i18n: class name_of_the_object(osv.osv):
33
 
                .. i18n: _name = 'name.of.the.object'
34
 
                .. i18n: _columns = { ... }
35
 
                .. i18n: ...
36
 
        .. i18n: name_of_the_object()
 
25
.. i18n: 
 
26
.. i18n:         class name_of_the_object(osv.osv):
 
27
.. i18n:                 _name = 'name.of.the.object'
 
28
.. i18n:                 _columns = { ... }
 
29
.. i18n:                 ...
 
30
.. i18n:         name_of_the_object()
 
31
 
 
32
The first line of the object definition will always be of the form::
37
33
 
38
34
        class name_of_the_object(osv.osv):
39
35
                _name = 'name.of.the.object'
135
131
 
136
132
Default value: 'id'.
137
133
 
138
 
    .. i18n: Examples::
139
 
 
140
 
                _order = "name"  
141
 
                _order = "date_order desc"
142
 
 
143
 
                .. i18n: _order = "name"  
144
 
                .. i18n: _order = "date_order desc"
 
134
.. i18n:     Examples::
 
135
.. i18n: 
 
136
.. i18n:                 _order = "name"  
 
137
.. i18n:                 _order = "date_order desc"
 
138
 
 
139
    Examples::
145
140
 
146
141
                _order = "name"  
147
142
                _order = "date_order desc"