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

Hello,


I want to override this menu item :

<menuitem name="AAA"
id="purchase.menu_purchase_rfq"
parent="purchase.menu_procurement_management"/>

So this is the good id and parent because I can move it as I want, but name = "AAA" as no effect.

I tried to update the action too but it doesn't work :

<record id="purchase.purchase_rfq" model="ir.actions.act_window">
<field name="name">AAAA</field>
</record>

Could you help me please.

Thx

الصورة الرمزية
إهمال

<record id="purchase.menu_purchase_rfq" model="ir.ui.menu">

<field name="name">AAAA</field>

</record>

الكاتب

Yeah I tried with model="ir.ui.menu" and everything as you wrote. Sorry for mistake before.

But still not working.

String is still the same

الكاتب

Up please, someone have an idea

الكاتب

Up n2 is it a bug of Odoo ?

أفضل إجابة

Do like this

<record id="purchase.menu_purchase_rfq" model="ir.ui.menu">
    <field name="name">AAAA</field>
</record>
الصورة الرمزية
إهمال
الكاتب أفضل إجابة

I've tried Muhammad but got this error :


    " you can't define a `%s` record with this ID." % (xml_id, real_model, model)

ParseError: "External ID conflict, menu_purchase_rfq already refers to a `ir.ui.menu` record, you can't defin                e a `ir.actions.act_window` record with this ID." while parsing /odoo/custom/addons/app_catalogue_achat/views                /views_company.xml:165, near

<record id="purchase.menu_purchase_rfq" model="ir.actions.act_window">

            <field name="

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 15
4851
1
يوليو 23
2173
7
نوفمبر 15
9352
1
مارس 15
3671
1
مارس 15
7462