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

i defined as follow to display mails in customer(res.partner) window <button name="%(mail.action_mail_archives_feeds)d" type="action" context="{'search_default_partner_ids': name }" string="inbox"/> <button name="%(mail.action_mail_archives_feeds)d" type="action" context="{'search_default_author_id': active_id }" string="outbox"/>

is there any possibility to pass '|' in context to combine both. i want both should be done in single button.

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

Hmmm, i'm not sure what are you trying to do but this should work:

<button name="%(mail.action_mail_archives_feeds)d" type="action" context="{'search_default_author_id': active_id, 'search_default_partner_ids': name }" string="outbox"/>
Ảnh đại diện
Huỷ bỏ
Tác giả

if we try your opinion we'll obtain the AND condition of author_id and partner_id's . but my requirement is for OR condition.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
1394
0
thg 7 22
2461
3
thg 9 20
3114
2
thg 12 15
4720
0
thg 3 15
3179