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

Hello, i create a table like this


header | header

0.0        | 0.0


Every cell has a hyperlink to a record in a model, but i want to open a popup, like a many2one field, in the same windows. 


Thanks.

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

The right way to do it is extend filed and create your new widget at js site to do the job
here is the reference of the many2one field external button click code
https://github.com/odoo/odoo/blob/13.0/addons/web/static/src/js/fields/relational_fields.js#L706

But if you don't want to touch javascript part then put object type button on view and define a method on a model which return action with 'target': 'new' and red_id set provided by a view

อวตาร
ละทิ้ง