Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
2500 Ansichten

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.

Avatar
Verwerfen
Beste Antwort

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()
Avatar
Verwerfen
Beste Antwort

great answer thank you so much

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
März 25
1479
1
Juni 24
2150
1
März 23
5211
1
Nov. 22
18752
1
Okt. 22
11392