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
회신
6107
화면
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
|
2712 | ||
|
1
9월 22
|
2494 | ||
|
2
3월 21
|
9915 | ||
|
3
9월 17
|
7838 | ||
|
0
5월 25
|
3200 |
Hi Ray, thank you very much for your answer. It is very clear!