Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1157 Lượt xem

I am developing a custom module for Odoo18.

I what the following:

  1. Click on a record in a list view -> Opens Form popup
  2. In the Form popup I see Chatter.

p.s. The record I am clicking has:

_inherit = ["mail.thread"] 

How would I do it? At the moment I cannot see chatter in popup while it is shown when form is shown full screen (not popup).

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hi Anas, I have like in your example but it is not enough. I want to have chatter in Popup Form view.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello ,

Modify the Form View  :

<record id="view_form_your_model" model="ir.ui.view">

    <field name="name">your.model.form</field>

    <field name="model">your.model</field>

    <field name="arch" type="xml">

        <form string="Your Model Form">

            <sheet>

                <group>

                    <!-- Your fields go here -->

                </group>

            </sheet>

            <chatter/>

        </form>

    </field>

</record>



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 23
2783
2
thg 7 25
513
1
thg 5 25
1000
1
thg 5 25
1043
1
thg 2 25
1174