Documente Academic
Documente Profesional
Documente Cultură
Understand
IDs
(con*nued)
¨ User
defined
IDs
are
saved
in
the
database
and
can
be
retrieved
via:
¤ SeTngs
/
Technical
/
Sequences
&
Iden*fiers
/
External
Iden*fiers
Understand
IDs
(end)
¨ User
defined
IDs
allow
to
manage
Import
/
Update
of
data
¨ During
import:
¤ If
a
record
exists
with
this
ID,
OpenERP
will
update
the
record
¤ If
no
record
exists
with
this
ID,
OpenERP
will
create
a
new
record
¨ In
the
database
all
External
IDs
are
stored
in
table
ir_model_data
Import
simple
Fields
Field type Cell content Example
char, text Content surrounded by “ “This is a text ""value”"."
float Number with . as decimal 3.15
separator
boolean True or False “0” or 0 or “False” or False
or “1” or 1 or “True” or True
date YYYY-MM-DD 2013-06-10
datetime YYYY-MM-DD HH:MM:SS 2013-06-10 07:07
selection Value as given by
“developer mode” inspector
...
¨ This
is
the
simplest
rela*on
to
import
in
CSV
¤ Just
use
id
of
referenced
object
Import
rela*ons:
Many2Many
¨ Eg.
Customer
Tags
... ...
¨ Really
simple
in
CSV
;
enter
all
values
separated
by
comma
with
no
space
Import
rela*ons:
One2Many
¨ Eg.
Quota*ons/
Quota*ons
Lines
sale_order sale_order_line
id id
... order_id
...
¨ In
CSV:
Enter
lines
while
you
don’t
repeat
header
object
fields
¤ Child
objects
column
format
is
“one2many_fieldname/child_object_field”
Integrate
CSV
in
your
development
workflow
¨ Create
a
set
of
shared
Google
Spreadsheet
that
your
users
will
complete
with
project
data
¨ Organize
your
OpenERP
project
in
3
modules:
¤ project_core
with
code
and
technical
parameters
¤ project_data
:
will
contains
only
data
in
CSV
files
¤ project_test
:
contains
your
test
code
and
test
specific
data
¨ Use
a
tool
to
automate
export
and
download
of
the
Google
Spreadsheet
into
the
project_data
module
¤ hkp://bitbucket.org/cmorisse/edgdd
¨ Your
users
will
be
able
to
“coopera*vely”
enter
their
data
and
you
will
be
able
to
seamlessly
integrate
and
use
this
data
in
your
project
More
informa*on?
14
www.audaxis.com
Contact
us
openerp@audaxis.com