تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (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
حول هذا المنتدى
المساعدة

[v14] I edited a button and now I'm getting a strange Warning while Odoo is loading...

اشتراك

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

لقد تم الإبلاغ عن هذا السؤال
buttonsimili
3 الردود
4785 أدوات العرض
الصورة الرمزية
Hugo

Hi,

 

On Vendors form view (res.partner) there are buttons showing:

 "# Quotations"    "# Supplier Bill"    "# Purchases"   etc


 I want those buttons to be visible only to admins

 

My code works fine but I'm getting a WARNING on odoo.log:

WARNING database odoo.addons.base.models.ir_ui_view: A simili button must be in tag a/button/select or tag `input` with type button/submit/reset or have class in btn-group/btn-toolbar/btn-ship


What is causing this simili button warning? Is there a fix for it?

 

My code:

≤record id="edit_edited_res_partner_buttons_named_purchased" model="ir.ui.view"≥
    ≤field name="name"≥edit.partner.buttom.purchased≤/field≥
    ≤field name="model"≥res.partner≤/field≥
    ≤field name="inherit_id" ref="purchase.res_partner_view_purchase_buttons"/≥
    ≤field name="arch" type="xml"≥
        ≤xpath expr="//button[@name='%(purchase.act_res_partner_2_purchase_order)d']" position="attributes"≥
            ≤attribute name="groups"≥__import__.group_menu_admin≤/attribute≥
        ≤/xpath≥
    ≤/field≥
≤/record≥

 

Thanks in advance

0
الصورة الرمزية
إهمال
الصورة الرمزية
Malay Khamar (Serpent Consulting Services Pvt. Ltd.)
أفضل إجابة

Hi Hugo,


EDIT:

The issue raised from your

tag class 'btn-secondary'. If you remove the class or replace it with any class from the ('btn-group', 'btn-toolbar', 'btn-ship'), then it will not raise any error


if you are using any class which is starts with 'btn', then system must check the validations on it. you must follow some rules to define it.


1) It (class) must be in tag  ≤a≥,  ≤button≥,  ≤select≥
2) OR If its in input tag ≤input≥,  then type must be in ('button', 'submit', 'reset')
3) if it will not follow above two , then the tag must have only these classes ('btn-group', 'btn-toolbar', 'btn-ship') in it . Not the 'btn-secondary'.

 
tag class , If you remove the class or replace it with any class from the ('btn-group', 'btn-toolbar', 'btn-ship'), then it will not raise any error.

Hope it will help you.
Please vote the answer.

1
الصورة الرمزية
إهمال
Hugo
الكاتب

I did not work...

I've tested your code and the warning persists
I've also tested replacing "groups" attribute with "invisible" attribute and I still get the warning messa

My code:
≤record id="edit_edited_res_partner_buttons_named_purchased" model="ir.ui.view"≥
___≤field name="name"≥edit.partner.buttom.purchased≤/field≥
___≤field name="model"≥res.partner≤/field≥
___≤field name="inherit_id" ref="purchase.res_partner_view_purchase_buttons"/≥
___≤field name="arch" type="xml"≥
______≤xpath expr="//button[@name='%(purchase.act_res_partner_2_purchase_order)d']" position="attributes"≥
_________≤attribute name="invisible"≥1≤/attribute≥
______≤/xpath≥
___≤/field≥
≤/record≥

Malay Khamar (Serpent Consulting Services Pvt. Ltd.)

Hi Hugo
Please check the updated answer

Muhammad Ihza Putra Handayani

<button class="transparent-button" name="contact_wizard" type="object" string="Business directory" invisible="parent_id or last_satisfaction in [1 , 2 , 3 , 4 , 5]">
<img src="/certification_app/static/src/img/Satisfaction client défaut.png" style="width:80px"/>
</button>

please help me im encountered the same error too, above is an example code of one of my error
i have tried add the btn-group in class but still the same i also try add alt but the result is still the same

الصورة الرمزية
Muhammad Bilal
أفضل إجابة

I thinks it's raise due to attribute that you have added give the external_xml id in groups attribute


0
الصورة الرمزية
إهمال
Hugo
الكاتب

It did not work...

I tested by replacing "groups" attribute with "invisible" attribute and I still get the warning messa

My code:
≤record id="edit_edited_res_partner_buttons_named_purchased" model="ir.ui.view"≥
___≤field name="name"≥edit.partner.buttom.purchased≤/field≥
___≤field name="model"≥res.partner≤/field≥
___≤field name="inherit_id" ref="purchase.res_partner_view_purchase_buttons"/≥
___≤field name="arch" type="xml"≥
______≤xpath expr="//button[@name='%(purchase.act_res_partner_2_purchase_order)d']" position="attributes"≥
_________≤attribute name="invisible"≥1≤/attribute≥
______≤/xpath≥
___≤/field≥
≤/record≥

الصورة الرمزية
Hugo
الكاتب أفضل إجابة

EDIT: I may have found the source of the problem, but I still don't know how to solve it

It seems that the error started when I created a particular button inside res.partner's kanban:

- If I remove this button's code ALL of the "simili button" warning disapear


The code:

≤record id="edit_res_partner_form" model="ir.ui.view"≥
≤field
name="name"≥edit.partner.form≤/field≥
≤field
name="model"≥res.partner≤/field≥
≤field
name="inherit_id" ref="base.view_partner_form" /≥
≤field
name="arch" type="xml"≥
    ≤xpath
expr="//t[@t-name='kanban-box']" position="replace"≥
        ≤t
t-name="kanban-box"≥
            ≤div
t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '') + ' oe_kanban_global_click'"≥
                ≤div
class="o_kanban_image"≥
                    ≤a
role="button" type="object" class="btn-group" string="Called"≥
                        ≤div
class="btn-secondary"≥
                            ≤span≥Cliente called
≤/span≥
                        ≤/div≥
                    ≤/a≥
                ≤/div≥
            ≤/div≥
        ≤/t≥
    ≤/xpath≥
≤/field≥
≤/record≥


0
الصورة الرمزية
إهمال
Hugo
الكاتب

Found the problem!

It seems that using ≤div class="btn-secondary"≥ caused the "simili button warning" not only for the button itself, but for every button created by that particular module. Must be a rare minor bug.

My fixed code:

≤a role="button" type="object" class="btn-group btn-secondary" string="Liguei"≥
Liguei
≤/a≥

Malay Khamar (Serpent Consulting Services Pvt. Ltd.)

Hi Hugo,

The issue raised from your <div> tag class 'btn-secondary'. If you remove the class or replace it with any class from the ('btn-group', 'btn-toolbar', 'btn-ship'), then it will not raise any error

if you are using any class which is starts with 'btn', then system must check the validations on it. you must follow some rules to define it.

1) It (class) must be in tag <a>, <button>, <select>
2) OR If its in input tag <input>, then type must be in ('button', 'submit', 'reset')
3) if it will not follow above two , then the tag must have only these classes ('btn-group', 'btn-toolbar', 'btn-ship') in it . Not the 'btn-secondary'.

The issue raised from your <div> tag class , If you remove the class or replace it with any class from the ('btn-group', 'btn-toolbar', 'btn-ship'), then it will not raise any error.

Hope it will help you.
Please vote the answer.

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

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

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
Opening new window with button in OpenERP تم الحل
button
الصورة الرمزية
الصورة الرمزية
1
يناير 24
15315
button in systray
button
الصورة الرمزية
الصورة الرمزية
2
مارس 18
5940
how can i restict auto data saving while clicking on custom button in odoo10?
button
الصورة الرمزية
0
يناير 18
4210
Modify / override button action in header of form ?
button
الصورة الرمزية
الصورة الرمزية
2
فبراير 24
27077
Send eMail template through code
button
الصورة الرمزية
3
فبراير 25
57929
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "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