How to create a payment for an invoice from python code in odoo15
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
4214
أدوات العرض
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
مارس 25
|
592 | ||
|
1
أكتوبر 22
|
10615 | ||
|
7
يناير 22
|
17628 | ||
Difference Amount in Payment
تم الحل
|
|
1
يناير 24
|
14282 | |
|
1
أكتوبر 19
|
3505 |
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,
})