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
|
2240 | |||
|
0
янв. 24
|
2298 | |||
|
1
нояб. 23
|
2511 | |||
|
Multiple journal entries
Решено
|
1
сент. 23
|
3314 | ||
|
1
сент. 25
|
2814 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.