コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2013 ビュー

Hello Community,

I have a model named 'A' it has a many2one relation (a) with another model 'B' and another relation one2many with a model 'C'. In 'C' there is a many2one field 'c'. In 'B' i have a one2many field 'b'. I want to set a domain for the field 'c' like this: domain="[('id','in',parent.a.b)]" , i've put this on the xml view but i got the following javascript error : Uncaught Error:

AttributeError: object has no attribute 'b'

 http://localhost:8069/web/static/lib/py.js/lib/py.js:757

...and i don't know how to set this domain using python code.

Thanks.

アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 25
3956
3
12月 22
11887
5
4月 24
42520
6
4月 24
39449
3
3月 24
10912