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

Where do I get the journal ID for paying against an invoice?

By
Jason Judge
on 9/4/14, 7:59 AM 563 views

I have a multi-company setup, some companies with multiple bank accounts (each in a different currnecy).

I have a portal that accepts payments and that portal needs to put those payments against invoices that the user has open. I have a library for calling up methods on models over the API to do this.

To make these payments, we create vouchers and voucher lines, then push them through workflow. Technically this is working, but some of the data in those vouchers needs to be derived.

One example is the journal_id - where would I get that from? I want to make the payment against a bank account for the invoice issuer (a company) that handles the same currency as the invoice. Which models do I need to look at and which relationships do I need to follow to get to the appropriate journal_id?

Thanks.

Is this as simple as looking up account.journal with the known company ID, currency ID and type='bank'?

Jason Judge
on 9/4/14, 8:15 AM

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: 9/4/14, 7:59 AM
Seen: 563 times
Last updated: 3/16/15, 8:10 AM