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
- 프로젝트
- MRP
신고된 질문입니다
1
회신
7008
화면
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
|
3305 | ||
|
|
1
3월 24
|
3482 | ||
|
|
2
3월 21
|
10648 | ||
|
|
3
9월 17
|
8510 | ||
|
|
2
10월 25
|
17032 |
Hi Ray, thank you very much for your answer. It is very clear!