Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3562 มุมมอง

I'm wondering if one can change the form popup that is shown when one has a form view with a list(tree) and list is not editable. Can I define action that is called.

I don't want to change the form view from the model. Only have a different only on that list. So inheriting the form view and changing it isn't what I need.  

I think I found what I was looking for, but can someone explain me how this works. How does Odoo know to use this action


<act_window id="project_task_action_view_timesheet"
name="Timesheet Entries"
src_model="project.task"
res_model="account.analytic.line"
view_mode="tree"
view_id="hr_timesheet_line_tree"
context="{
'search_default_task_id': [active_id],
'default_task_id': active_id,
}"
/>


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 25
1906
6
ส.ค. 19
4413
3
ก.พ. 19
6983
1
ส.ค. 18
3958
How to filter list view by related field แก้ไขแล้ว
6
ส.ค. 18
10843