I am mass importing Invoices and Payments, and I know which ones have to be reconciled but I don't want to do this manually.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilitate
- Inventory
- PoS
- Project management
- MRP
Această întrebare a fost marcată
2
Răspunsuri
788
Vizualizări
Given you have the ID of the Journal Item (account.move.line) representing the AP debit from the Invoice and the ID of the Journal Item representing the AP credit from the Payment:
reconcile_wanted = self.env['account.reconcile.wizard'].with_context(
active_model='account.move.line',
active_ids=[__invoice_move_line_id__,__payment_move_line_id__],
).new({'allow_partials': True})
reconcile_wanted.reconcile()
great answer thank you so much
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
1
iun. 24
|
650 | ||
|
1
mar. 23
|
2920 | ||
Create new invoice by code
Rezolvat
|
|
1
nov. 22
|
17388 | |
|
1
oct. 22
|
9438 | ||
|
7
ian. 22
|
16119 |