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

    project_field = fields.Many2one('project.project', 'name', select=True)

task_field = fields.Many2one('project.task', 'task_id', required=True, select=True)


I want that my field "task_field" shows me the project of the selected project in project_field.



アバター
破棄
最善の回答

Hi wizardz and livenow

In the field definition on the view you could restrict it like:

<field name="project_field"/>
<field name="task_field" domain="[('project_id', '=', project_field)]"/>
アバター
破棄
著作者

It works perfectly, thank you Axel ! You are the best

happy to help you!

最善の回答

try to know my self

アバター
破棄
関連投稿 返信 ビュー 活動
1
6月 23
3407
1
11月 22
3708
2
6月 20
3903
2
7月 18
7431
4
7月 18
8264