Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2468 Visualizzazioni

in the code below, I am able to create sale order and confirm it but I want to know how to create an invoice from sale order through python coding (xmlrpc)

s = models.execute_kw(db, uid, password, 'sale.order', 'create', [{
'partner_id': 1, 'validity_date': "2021-08-09", 'state': 'sale',
'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}),
],}])

Thank you


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mag 22
1872
1
giu 21
3865
1
lug 25
2509
2
lug 25
7950
2
lug 25
4388