تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

How to hide the Log note button in crm view from

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
odooodoocommunityodoocrmodoocode
3 الردود
12856 أدوات العرض
الصورة الرمزية
afjal khan

0
الصورة الرمزية
إهمال
الصورة الرمزية
Gracious Joseph
أفضل إجابة

To hide the Log Note button in the Chatter for the CRM view (or any other model) in Odoo, you are using an XML modification to override the mail.Chatter template. Here's how to ensure your approach works correctly:

1. Review Your Current Code

Your current XML code:

<templates xml:space="preserve">
    <t t-name="Chatter" t-inherit="mail.Chatter" t-inherit-mode="primary">
        <xpath expr="//button[@class='o-mail-Chatter-logNote']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
    </t>
</templates>

Checklist for your code:

  • Correct Template Name: Ensure mail.Chatter is the correct template to inherit. This is the main template for the Chatter component in Odoo.
  • XPath Accuracy: The XPath targets the Log Note button using the class o-mail-Chatter-logNote. Ensure the button has this class.
  • Inherit Mode: You are using t-inherit-mode="primary", which is correct for adding or overriding content in the parent template.

2. Common Issues

  • Incorrect Class: If the button class is dynamic or incorrect, the XPath will not match the element. Inspect the Chatter DOM in the browser (Developer Tools > Inspect) to verify the class.
  • Incorrect Template Loading: Ensure the XML file is loaded in the module's __manifest__.py file.
  • Incorrect Field Usage: The invisible attribute might not work as expected here. Use t-attributes to dynamically set visibility.

3. Fix the Code

If invisible doesn’t work, use t-attributes to hide the button dynamically:

<templates xml:space="preserve">
    <t t-name="Chatter" t-inherit="mail.Chatter" t-inherit-mode="primary">
        <xpath expr="//button[@class='o-mail-Chatter-logNote']" position="attributes">
            <attribute name="t-attributes">{'class': 'd-none'}</attribute>
        </xpath>
    </t>
</templates>

Here, the d-none class is added, which hides the button using Bootstrap's utility class.

4. Ensure XML File is Loaded

In the __manifest__.py file of your module, include the XML file:

'data': [
    'view/chatter_inherit.xml',
],

5. Test the Changes

  1. Restart your Odoo server:
    ./odoo-bin -c odoo.conf
    
  2. Upgrade your module:
    ./odoo-bin -u your_module_name
    
  3. Check the CRM view and ensure the Log Note button is hidden.

6. Debugging Tips

  • Inspect with Developer Tools: Ensure the Log Note button exists and the class matches your XPath.
  • Check Logs: Look for errors in the Odoo logs (odoo.log) if the changes don’t take effect.
  • Test XPath Separately: Use a broader XPath to ensure the targeting works:
    <xpath expr="//button" position="attributes">
        <attribute name="t-attributes">{'class': 'd-none'}</attribute>
    </xpath>
    

By following these steps, you should be able to successfully hide the Log Note button in the Chatter for the CRM view. Let me know if you need further assistance!

0
الصورة الرمزية
إهمال
الصورة الرمزية
afjal khan
الكاتب أفضل إجابة

Can you provide the full code?


0
الصورة الرمزية
إهمال
الصورة الرمزية
Anaghan Heri
أفضل إجابة

Hi you can inherit a CRM XML view and add inside CSS value 


                  


.o_ChatterTopbar_buttonLogNote{

            display: none;

   }

                     

                   

0
الصورة الرمزية
إهمال
Nimesh Parikh

Is it possible to keep it on based on state, like the button should get invisible if project.state is done

هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
In Odoo CRM, when you make changes to a CRM lead in the form view (e.g., updating the stage in crm.crm_lead_view_form), you want the lead to automatically appear at the top of the Kanban view (crm.crm_case_kanban_view_leads).
kanban odoo odoocommunity odoocrm
الصورة الرمزية
0
أكتوبر 24
1653
How to hide the Log note button in crm view from with code
odoo odoocommunity Odoo18.0 odoocrm
الصورة الرمزية
0
سبتمبر 24
1383
Here I am adding the filed in crm activity from after the Due Date I want time filed but show this error
odoo odoocommunity
الصورة الرمزية
0
سبتمبر 24
1486
Inquiry About Odoo SMS Module Pricing in India
odoo odoocommunity odoosms
الصورة الرمزية
0
أكتوبر 24
1514
How to hide the Log note button in crm view from
odoo odoocommunity odoo17
الصورة الرمزية
الصورة الرمزية
2
سبتمبر 24
1745
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now