我需要eval在Odoo的product模块的product_demo.xml中理解以下代码中的属性:
"record id="product_product_4_product_template" model="product.template">
field name="attribute_line_ids" eval="[(6,0,[ref('product.product_attribute_line_1'), ref('product.product_attribute_line_2'), ref('product.product_attribute_line_3')])]"/>
</record>"
Run Code Online (Sandbox Code Playgroud)
我知道attribute_line_ids这里的价值正在设定中.我也理解'ref'中的值是指XML ids,简而言之,它会返回与XML id相关的model-'product.attribute.line.
我真的不明白eval属性中的每个值的含义以及它在视图级别和数据库级别上会做出哪些更改.我已经提到了许多odoo文档,但没有一个可以提供清晰度.