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

How to create a payment for an invoice from python code in odoo15 

アバター
破棄
著作者

Following is a Code Snippet to Archive it.

payment=self.env['account.payment.register'].with_context(active_model='account.move'
active_id=rec.ids).create({
'payment_date': date.today(),
'amount': 120,
'journal_id': 7,
'currency_id': 122,
})

最善の回答

Hello Estain Makaudze,

Please find below way to use payment create from invoice in py code,
 
addons > account > wizard > account_payment_register.py file > method(_create_payments())

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari


アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 25
1251
1
10月 22
11209
7
1月 22
18596
1
1月 24
14951
1
10月 19
4007