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

Hello, I have created new one2many field which is related with ir.attachment. in xml file :

             <field name="ir_doc_attachment_ids">
                         <tree editable="botttom">
                            <field name="name" string="Type of Document"/>                                                       
                            <field name="datas_fname" string="File Name"/>
                            <field name="datas" string="Attachment"/>
                        </tree>         
                </field>

when I mentioned editable="bottom" I will add attachment through tree view itself only. it is looking fine for me. But when I have saved current record and click on row of tree view that is one of the attachment it will not redirect to file details or ir attachment form view. but if i did not mentioned editable="bottom" then it will redirect to form view for same case.

Thank you in Advance :)

อวตาร
ละทิ้ง

please post your python code for this also, that is probably where the problem is.

คำตอบที่ดีที่สุด

I have the same issue. did you find the solution. Thanks to informe me if yes.

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

Install this module https://www.odoo.com/apps/modules/8.0/web_tree_many2one_clickable/

then add the widget "many2one_clickable" to the required fields in the tree view 

For example:

<field name="partner_id" widget="many2one_clickable" />


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 18
300
4
ธ.ค. 23
17704
1
ก.ย. 16
7421
0
มิ.ย. 15
3818
0
มี.ค. 15
3666