File: ref_fields.rst

package info (click to toggle)
python-odoorpc 0.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 604 kB
  • sloc: python: 3,461; makefile: 154; sh: 36
file content (28 lines) | stat: -rw-r--r-- 997 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.. _fields:

Browse object fields
====================

The table below presents the Python types returned by `OdooRPC`
for each `Odoo` fields used by :class:`Recordset <odoorpc.models.Model>`
objects (see the :func:`browse <odoorpc.models.Model.browse>` method):

================  ==============================
`Odoo` fields     Python types used in `OdooRPC`
================  ==============================
fields.Binary     unicode or str
fields.Boolean    bool
fields.Char       unicode or str
fields.Date       `datetime <http://docs.python.org/library/datetime.html>`_.date
fields.Datetime   `datetime <http://docs.python.org/library/datetime.html>`_.datetime
fields.Float      float
fields.Integer    integer
fields.Selection  unicode or str
fields.Text       unicode or str
fields.Html       unicode or str
fields.Many2one   ``Recordset``
fields.One2many   ``Recordset``
fields.Many2many  ``Recordset``
fields.Reference  ``Recordset``
================  ==============================