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
回复
4807
查看
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
|
1099 | ||
|
1
10月 22
|
11083 | ||
|
7
1月 22
|
18294 | ||
|
1
1月 24
|
14818 | ||
|
1
10月 19
|
3923 |
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,
})