Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2508 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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()
Awatar
Odrzuć
Najlepsza odpowiedź

great answer thank you so much

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 25
1481
1
cze 24
2154
1
mar 23
5217
1
lis 22
18756
1
paź 22
11392