Odoo Help

0

how is calculated the debit credit in account_account

By
Felipe
on 2/28/13, 4:05 PM 2,711 views

I found this line inside __compute, mapping{ in account.py

'debit': "COALESCE(SUM(l.debit), 0) as debit",

but I don't understand what is l.debit or l.credit also the parent_right parent_left mechanics

for the parent_right parent_left mechanics :see https://answers.launchpad.net/openobject-server/+question/186704

AD LIBITOM, michel Guénard
on 2/28/13, 6:06 PM

Thx thats good information

Felipe
on 3/3/13, 5:12 PM
0
Daniel Reis
On 2/28/13, 6:14 PM

Debit and Credit are basic accounting concepts, used in the double-entry bookkeeping system.

COALESCE is this case works like Oracle's NVL and SQLServer's IsNull: COALESCE(a, b) returns a if a is not null, and returns b if a is null.

It safely defaults to a zero value if no data is found.

well I already knew all of that. What im asking is how the mapping to l.debit or other l. variables works, and how the parent_right and parent_left are generated and what is their role in the calculation.

Felipe
on 2/28/13, 8:24 PM

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 2/28/13, 4:05 PM
Seen: 2711 times
Last updated: 3/16/15, 8:10 AM