Import data from CSV

27 views
Skip to first unread message

Josias Pérez

unread,
Jun 14, 2018, 2:40:06 AM6/14/18
to tryton-dev
Hi,

I was trying to import data with CSV with a multi-company stage and all the companies with the same accounting plan.

I'm trying to import a file that require to import the a group of accounts but I found with an error that say that encounter many ocurrences. I dont know how to import that.

At the same time, I need to import with a tree structure child / parent. Actually I do it manually one by one (first parent and after the child) because if I put all together I can not import that (the parent doesn't be found and can create the child).

I was reading [1] but I think is a different case to import.

Any help will be usefull.

[1] https://groups.google.com/forum/#!searchin/tryton-dev/import%7Csort:date/tryton-dev/l_OlrlD1f48/Vtm-kcrjAAAJ

Sergi Almacellas Abellana

unread,
Jun 14, 2018, 4:42:17 AM6/14/18
to tryto...@googlegroups.com
El 13/06/18 a les 21:41, Josias Pérez ha escrit:
> Hi,
>
> I was trying to import data with CSV with a multi-company stage and all the companies with the same accounting plan.
>
> I'm trying to import a file that require to import the a group of accounts but I found with an error that say that encounter many ocurrences. I dont know how to import that.

It seems that this is because the program finds the accounts for several
companies and does not know which to pick.
>
> At the same time, I need to import with a tree structure child / parent. Actually I do it manually one by one (first parent and after the child) because if I put all together I can not import that (the parent doesn't be found and can create the child).

You can use the Children One2Many field to import all the childs of a
tree. Something like:

Name, Children/Name
Test, Child 1
, Child 2
, Child 3
Test2, Child 4
, Child 5

Will create the following tree:

Test:
- Child 1
- Child 2
- Child 3

Test2:
- Child 4
- Child 5

Hope it helps.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Cédric Krier

unread,
Jun 14, 2018, 6:20:05 AM6/14/18
to tryton-dev
On 2018-06-13 12:41, Josias Pérez wrote:
> I was trying to import data with CSV with a multi-company stage and all the companies with the same accounting plan.
>
> I'm trying to import a file that require to import the a group of accounts but I found with an error that say that encounter many ocurrences. I dont know how to import that.

Why not creating a template chart of account like the
account_{be,fr,es}?

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages