Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
2900 Lượt xem


Sorry, I need to understand the meaning of a syntax:
product_ids = [(6, 0, literal_eval (product_ids))] that is, which means object = [(n, 0, literal_eval (object)))]

This annotation is recurrent, for example, in the xml of the security folder. Thank's

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất


I would not like to take advantage would know how to give me indications where to deepen the syntax '[action] =' it shouldn't be a list, because it has no indexes; dictionaries have square brackets; tuples have round brackets ... could help me

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

This is to set the x2many fields with specific values

You can refer to this document hope it will help https://odoo-development.readthedocs.io/en/latest/dev/py/x2many.html

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank's