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:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
1
회신
6064
화면
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
11월 25
|
2298 | ||
|
|
1
10월 22
|
12031 | ||
|
|
7
1월 22
|
19878 | ||
|
|
1
1월 24
|
15952 | ||
|
|
1
10월 19
|
4680 |
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,
})