Thank you all in advance !
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Thank you all in advance !
Hi,
You can try the below code to disable the View Quotation button from the mail.First of all we need to disable the the noupdate property of the template mail_notification_paynow_online
Use the following code to set noupdate=false.
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'sale'), ('name', '=', 'mail_notification_paynow_online')]" />
</function>
<value eval="{'noupdate': False}" />
</function>
After setting the noupdate=false, disable the mail_notification_paynow_online template.
Use the code:-
<record id="sale.mail_notification_paynow_online" model="ir.ui.view">
<field name="active">False</field>
</record>
And now you can reset the noupdate property of mail_notification_paynow_online template.
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'sale'), ('name', '=', 'mail_notification_paynow_online')]" />
</function>
<value eval="{'noupdate': True}" />
</function>
After performing all the above steps, we need to replace the div section of the button in mail_notification_paynow template.
<template id="mail_notification_paynow" inherit_id="mail.mail_notification_paynow">
<xpath expr="//tr[2]//div[1]" position="replace"></xpath>
</template>
Hope it helps
This might be a solution > https://github.com/elsguns/odoo/tree/master/mail_no_portal.
Hi hello, i saw you get no answer in this post but i am interested in solve this problem, did you find a solution, please let me know because i have the same problem
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 1 23
|
1903 | ||
|
0
thg 9 21
|
2069 | ||
|
1
thg 1 20
|
4998 | ||
|
0
thg 5 22
|
2522 | ||
|
0
thg 10 21
|
2348 |