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:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
1
返信
5896
ビュー
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'})]
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
1
3月 24
|
2572 | ||
|
1
9月 22
|
2321 | ||
|
2
3月 21
|
9758 | ||
|
3
9月 17
|
7671 | ||
|
0
5月 25
|
3058 |
Hi Ray, thank you very much for your answer. It is very clear!