How to create a payment for an invoice from python code in odoo15
Bu soru işaretlendi
1
Cevapla
7696
Görünümler
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
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
0
Nis 26
|
1 | ||
|
|
1
Kas 25
|
3974 | ||
|
|
1
Eki 22
|
13792 | ||
|
|
7
Oca 22
|
22104 | ||
|
Difference Amount in Payment
Çözüldü
|
|
1
Oca 24
|
17564 |
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,
})