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

Hi Everyone,

Please do you have the solution for odoo 15?


I'm trying to inherit the signature module modal dialog to remove drawing and automatic options.


But I can't do that because the model is deleted after loading in the web module.


Pierre-Alain

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

Hello Pierre-Alain

Please find code in comment.

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

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

Please find the below XML code to inherit sign_name_and_signature and make sure to declare the xml file in assets -> web.assets_qweb

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">

<t t-extend="web.sign_name_and_signature">
<t t-jquery="[t-attf-class*=o_web_sign_draw_button]" t-operation="attributes">
<attribute name="t-att-style">'display: none;'</attribute>
</t>
<t t-jquery="[t-attf-class*=o_web_sign_auto_button]" t-operation="attributes">
<attribute name="t-att-style">'display: none;'</attribute>
</t>
</t>

</templates>

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 23
1724
2
thg 8 23
1598
1
thg 12 23
2953
1
thg 7 23
2249
0
thg 5 23
1841