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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
2957
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Oct 22
|
9454 | ||
|
7
Jan 22
|
16136 | ||
Difference Amount in Payment
Solved
|
|
1
Jan 24
|
13220 | |
|
1
Oct 19
|
2663 | ||
|
0
Aug 16
|
2525 |
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,
})