Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3736 Представления

Is there a way to add domain on one2many field? So far I am returning:

return {

      'domain':{

          'mrp_stock_line_ids':[('id','=',product_id)]

      }

}


but it is not doing anything, also I get no error.



Аватар
Отменить

Hi dean , please describe your method clearly so we can solve your problem if we know

Лучший ответ

. you are setting domain on mrp_stock_line_ids field, and want to show (line) id = product_id... .try
[('product_id','=',product_id)]  for a domin...
(guess you want to show only lines wich has selected product... )

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
июн. 15
4178
0
сент. 24
1302
2
мая 24
9337
1
апр. 23
5226
7
апр. 23
19213