2
我有兩種形式。第一個task_view.xml顯示所有用戶的所有任務。在打開一個用戶後,第二形式user_view.xml我添加 按鈕在odoo中使用上下文9
<button class="oe_inline oe_stat_button" style="float:right;" type="action" icon="fa-folder" name="%(task_view_form)d"
context="{'??????}">
<field string="total" name=total_qty" widget="statinfo" />
</button>
現在,當點擊按鈕,我得到所有用戶的所有任務,如何使用上下文或按鈕後點擊任何其他解決方案,我需要(過濾器)只有該用戶的任務。
我需要篩選project_task_user_id = id用戶從表單放置按鈕。