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

i want to add one button in the messaing menu-> inbox. There is three buttons 'Mark as Todo', 'reply' and 'Done'. i want to add button, after the 'reply' button.  how to do this?

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

In __openerp__.py,
add 'qweb': ['static/src/xml/YOUR_FILE_NAME.xml']

In YOUR_FILE_NAME.xml stored @ static/src/xml

 <?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
   <t t-extend="mail.thread.message">
        <t t-jquery="span[class=oe_reply]" t-operation="before">
            <span class='oe_YOUR_CLASS'><a title="YOUR TITLE" class="oe_e">*</a></span>
        </t>
   </t>
</templates>


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
1525
1
thg 5 25
1235
2
thg 5 25
1355
0
thg 4 25
1107
1
thg 3 25
1590