Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

Hi,


I have a model x_studio_bultos that related to sale.order in the field x_pedido but when create the new field using automated action only creates the data from the field x_numero_bulto and x_pedido is empty.


for i in range(record.x_studio_bultos):

  bulto = env['x_bultos_por_pedidos'].create({

      'x_numero_bulto': i + 1,

      'x_pedido': record.name,

  })


What am I doing wrong?


Thanks to all.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 2 23
6097
1
thg 2 24
2441
3
thg 7 23
3976
2
thg 5 23
3957
2
thg 5 25
6312