تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5873 أدوات العرض

I have the following template;

<t t-extend="mail.chatter.ChatComposer" class="o_chat_composer">
<t t-jquery="div[class='o_composer_input']" t-operation="prepend">
<span class="oe_form_field oe_datepicker_root oe_form_field_datetime">
<t t-call="web.datepicker" widget="datepicker" name="create_date"></t>
</span>
</t>
</t>

This adds the markup for a datetime picker when "Log an internal note" is selected. So far, so good. The problem is that the markup is not functional as it is when used as a widget on a datetime field on a form. I suspect that it's due to the content being loaded via AJAX and the widget never being initialized. I do also however note that events are attached to the <textarea> element which is loaded at the same time.

What am I missing?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
نوفمبر 24
923
1
أكتوبر 22
2733
2
ديسمبر 20
10519
0
مارس 15
3733
1
يونيو 23
2853