在odoo 10中将域设置为第二级关系

时间:2018-07-19 22:47:18

标签: odoo odoo-domain

基本上,我有3种型号:

[A]-one2many-> [B]-one2many-> [C]

当模型A中的字段更改时,模型B的C元素下拉列表应按某个域过滤。

我该怎么做?

更具体。在“库存/仪表板”中->单击“内部转移”->创建一个新转移,然后:

see inventory movement form

1 个答案:

答案 0 :(得分:0)

让我们尝试将域添加到“初始需求”->“产品”字段中,例如:

  

<字段名称='product'   domain =“ [('source_location','=',parent.source_location [0] [2]或   False />

如果source_location是产品对象中的字段

相关问题