Hello! I'm trying to figure out where are Journal Entries created when registering a payment in Account Payment Register model via python code in Odoo 17.
Thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello! I'm trying to figure out where are Journal Entries created when registering a payment in Account Payment Register model via python code in Odoo 17.
Thanks in advance.
Hi,
The payment creation process begins in the 'action_create_payments' method of account.payment.register, which calls the '_create_payments' method. Within _create_payments:
1) Payments are created in the _init_payments method by initializing account.payment records with the required values.
2) These payments are then posted through the '_post_payments' method, which calls the 'action_post()' method on the account.payment records. This triggers the self.move_id._post() method in account.payment, generating and posting the corresponding account.move (journal entry) into the general ledger.
3) Finally, the payments are reconciled through the _reconcile_payments method, ensuring proper linkage between payments and their associated invoices or bills.
Hope it helps
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
2
يوليو 25
|
2257 | |||
|
0
يناير 24
|
2318 | |||
|
1
نوفمبر 23
|
2530 | |||
|
Multiple journal entries
تم الحل
|
1
سبتمبر 23
|
3343 | ||
|
1
سبتمبر 25
|
2842 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.