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
回复
5941
查看
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
|
2602 | ||
|
1
9月 22
|
2376 | ||
|
2
3月 21
|
9804 | ||
|
3
9月 17
|
7719 | ||
|
0
5月 25
|
3094 |
Hi Ray, thank you very much for your answer. It is very clear!