コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2491 ビュー

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.

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 25
1477
1
6月 24
2149
1
3月 23
5211
1
11月 22
18752
1
10月 22
11392