1
我有一个one2many
树字段,它包含许多列,每列使用many2one
场,下面的图片中显示两列:过滤one2many场many2one场
是否有使用的方式many2one
字段获取值,让我们假设第一列(prod1,prod2)。
我是初学者,不知道从哪里开始,任何建议将不胜感激!
P.S:我与odoo V9工作
我有一个one2many
树字段,它包含许多列,每列使用many2one
场,下面的图片中显示两列:过滤one2many场many2one场
是否有使用的方式many2one
字段获取值,让我们假设第一列(prod1,prod2)。
我是初学者,不知道从哪里开始,任何建议将不胜感激!
P.S:我与odoo V9工作
您可以使用此文档形式odoo:Odoo documentation
One2many场;这样的字段的值是comodel_name中的所有记录的记录集,使得字段inverse_name等于当前记录。如果你需要使用TOA域这样
comodel_name -- name of the target model (string)
inverse_name -- name of the inverse Many2one field in comodel_name (string)
domain -- an optional domain to set on candidate values on the client side (domain or string)
context -- an optional context to use on the client side when handling that field (dictionary)
auto_join -- whether JOINs are generated upon search through that field (boolean, by default False)
limit -- optional limit to use upon read (integer)
:
field.One2many(comodel_name="model_name", inverse_name="inverse_field_name", string=None, domain=[('filed_name_in_comodel', 'operators', 'Value')])
您可以使用这些参数