I cannot create a new order line because I cannot generate the next sale.order.line order.id
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- प्रोजेक्ट
- MRP
This question has been flagged
1
Reply
7051
Views
Odoo autogenerates the ID of the sale.order.line once it is saved.You can do something like this: (Server Action code adds a note line to a purchase order, but the same technique works for Sales Orders)
for record in records:
record['order_line'] = [(0, 0, {'name': 'Note: Downpayment requested', 'product_qty': 0, 'display_type': 'line_note'})]
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
2
अक्तू॰ 25
|
3334 | ||
|
|
1
मार्च 24
|
3507 | ||
|
|
2
मार्च 21
|
10683 | ||
|
|
3
सित॰ 17
|
8540 | ||
|
Creating recurring invoice
Solved
|
|
2
अक्तू॰ 25
|
17229 |
Hi Ray, thank you very much for your answer. It is very clear!