I am new to odoo and could not find documentation regarding creation of invoice from
sale order using python (xmlrpc)
Here's my code for creating the quotation and confirming the sale order. Could anyone
please help me with creating invoice
s = models.execute_kw(db, uid, password, 'sale.order', 'create', [{
'partner_id': 1, 'validity_date': "2021-08-09",
'order_line': [(0, 0, {'product_id': 2, 'product_uom_qty': 2, 'price_unit': 10.00}),
(0, 0, {'product_id': 5, 'product_uom_qty': 4, 'price_unit': 20.00}),
],
}])
models.execute_kw(db, uid, password, 'sale.order', 'action_confirm', [[s]])
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
2344
Views
You can use create method for manual creation
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 | |
---|---|---|---|---|
Create invoice via xmlrpc
Solved
|
|
1
Nov 22
|
1894 | |
|
2
Jul 22
|
3194 | ||
|
1
Aug 23
|
10963 | ||
|
1
Oct 22
|
2824 | ||
|
2
Sep 20
|
7746 |
On CE inoicing module is free, just so you know, you can take a look on that.