How to create a payment for an invoice from python code in odoo15
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
7768
มุมมอง
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
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
0
เม.ย. 26
|
1 | ||
|
|
1
พ.ย. 25
|
4030 | ||
|
|
1
ต.ค. 22
|
13843 | ||
|
|
7
ม.ค. 22
|
22130 | ||
|
Difference Amount in Payment
แก้ไขแล้ว
|
|
1
ม.ค. 24
|
17602 |
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,
})