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

Hi folks,

The desired process is the following:

    I would like

  • from a one2many field inside a parent view (the kanban view of child_ids inside the partner's form view)

  • to click on a link on the kanban box of a contact

  • to have the corresponding view to open in the current window instead of the "new" modal window.

hints:

The documentation says this :

buttons and fields
[...] buttons and links with a type attribute perform Odoo-related operations rather than their standard HTML function. Possible types are:
action, object
standard behavior for Odoo buttons, most attributes relevant to standard Odoo buttons can be used.
open
opens the card's record in the form view in read-only mode
[...]

I wonder which approach should I take:

  1. Using an <a type="open"> element while specifying a context="{'target':'current'}" maybe ?

  2. Using an <a type="action"> with a target defined inside the action

  3. Using an <a type="object"> with a method returning a dictionary # action = {# 'type': 'ir.actions.act_window',# 'target': 'current',... }

Thanks for your time ;)

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Duplicate of:

\https://www.odoo.com/forum/help-1/question/kanban-view-open-in-current-window-111920

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 17
6808
0
เม.ย. 21
2553
1
ม.ค. 25
1745
0
ม.ค. 25
1083
1
ก.ย. 22
1322