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
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrácia| Related Posts | Replies | Zobrazenia | Aktivita | |
|---|---|---|---|---|
|
2
júl 25
|
2240 | |||
|
0
jan 24
|
2300 | |||
|
1
nov 23
|
2512 | |||
|
Multiple journal entries
Solved
|
1
sep 23
|
3315 | ||
|
1
sep 25
|
2817 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.