Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5885 Представления

I cannot create a new order line because I cannot generate the next sale.order.line order.id

Аватар
Отменить
Автор

Hi Ray, thank you very much for your answer. It is very clear!

Лучший ответ

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'})]
Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 24
2567
1
сент. 22
2309
2
мар. 21
9747
3
сент. 17
7660
0
мая 25
3051