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
- Project
- MRP
此問題已被標幟
1
回覆
6802
瀏覽次數
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'})]
| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
|
2
10月 25
|
3106 | ||
|
|
1
3月 24
|
3313 | ||
|
|
2
3月 21
|
10435 | ||
|
|
3
9月 17
|
8307 | ||
|
|
2
10月 25
|
16378 |
Hi Ray, thank you very much for your answer. It is very clear!