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

Hi,

I am trying to change some configurations on the buttons at the top of the chatter (send message, log , activities)

I have found the template responsible for those buttons to be:

- mail/static/src/components/chatter_topbar/chatter_topbar.xml

and I have duplicated that file in my own module:

- my_custom_module/static/src/xml/own.xml

to replace the file I have added on the manifest depends the mail module and added the 


 'web.assets_qweb': [            ('replace',

​'mail/static/src/components/chatter_topbar/chatter_topbar.xml',              ​​

​'my_module_custom/static/src/xml/own.xml'),        ],


but the xml is not being replaced, does anybody know why? any help would be apreciated :)  

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Solved,

For those who could face the same issue:

I had to override de js file that calls the xml template ( is an owl js file ) and is located in the same folder.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 20
27430
2
ธ.ค. 21
9266
t-att-href url get error แก้ไขแล้ว
2
เม.ย. 23
8681
How to modify a qweb template? แก้ไขแล้ว
2
ธ.ค. 22
22993
3
ก.ย. 20
4588