Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Import journal items entry in odoo accounting journal as opening balance from csv file

By
rais
on 7/16/15, 2:10 AM 1,842 views

Is it possible to import (using odoo csv import) into one journal entry (let's say journal number GJ01) and add all items as child entry, such that it will balance the journal automatically?


Suppose below is my General Journal (GJ) entries csv items.


Number,Period,Journal,Date,Ref,Name,Account,YTD Debit,YTD Credit

GJ01,May 2015,General Journal,2015-05-01,Opening Balance ,May 2015,Electronic Clearing Ac," $25,000.00 ",

GJ01,May 2015,General Journal,2015-05-01,Opening Balance ,May 2015,Pension Acc.," $25,000.00 ",

GJ01,May 2015,General Journal,2015-05-01,Opening Balance ,May 2015,Trade Debtors," $200,000.00 ",

GJ01,May 2015,General Journal,2015-05-01,Opening Balance ,May 2015,Prepayment Insurance," $100,000.00 ",

GJ01,May 2015,General Journal,2015-05-01,Opening Balance ,May 2015,Prepayment Workers Comp.,," $100,000.00 "

GJ01,May 2015,General Journal,2015-05-01,Opening Balance ,May 2015,Less Prov'n for Doubtful Debts,," $250,000.00 "


I did import using the above csv and it recorded  six records into the object account.move and six records into the account.move.lines. Actually, I wanted one record in account.move and six records in account.move.lines.

Is there any tool or way/s to achieve my goal?

Thanks.








0
Jérôme TANCHÉ
On 8/11/15, 4:36 PM

Hi Rais,

in order to do that, I think that you just have to modify your CSV file like this :

Number,Period,Journal,Date,Ref,Name,Account,YTD Debit,YTD Credit
GJ01,May 2015,General Journal,2015-05-01,Opening Balance ,May 2015,Electronic Clearing Ac," $25,000.00 ",
,,,,Opening Balance ,May 2015,Pension Acc.," $25,000.00 ",
,,,,Opening Balance ,May 2015,Trade Debtors," $200,000.00 ",
,,,,Opening Balance ,May 2015,Prepayment Insurance," $100,000.00 ",
,,,,Opening Balance ,May 2015,Prepayment Workers Comp.,," $100,000.00 "
,,,,Opening Balance ,May 2015,Less Prov'n for Doubtful Debts,," $250,000.00 "

The first four fields relate to each move, and should be filled only on the first line of a move.

While the five following fields relate to each move line, and must be completed on each line.

Regards,

Jérome

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/16/15, 2:10 AM
Seen: 1842 times
Last updated: 8/11/15, 4:36 PM