Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2356 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
kvě 22
1775
1
čvn 21
3702
1
čvc 25
2189
2
čvc 25
7692
2
čvc 25
4112