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

Dear Odoo Experts,

Can you please guide me how can I add a field to chatter
just like we use to add send a message field.
My requirement is to add a selection field in chatter so the user select value from the selection field and send a message directly instead of typing message.
 

TIA

Ảnh đại diện
Huỷ bỏ

<record id="res_partner_inherited_for_mail" model="ir.ui.view">
<field name="name">res.partner.mail</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//sheet" position="after">
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="phone"/>
<field name="email"/>
</div>
</xpath>
</field>
</record>

Tác giả

Thank you @Meet for responding. Should I use the same code in xml after inheriting the res.partner model?

Yes, you can do that. 

On Sun 2 Jan, 2022, 10:19 AM Hafiz, <husnhsfdc@gmail.com> wrote:

Thank you @Meet for responding. Should I use the same code in xml after inheriting the res.partner model?

Sent by Odoo S.A. using Odoo.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 25
1466
2
thg 12 24
2439
0
thg 11 24
1274
3
thg 5 24
4656
0
thg 1 25
2653