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

I want to inherit the module crm.lead and i have an error at the module name level ,

"module non trouvé: crm.lead" , who can help me please.

this is the part of my code:

<record id="view_leads_tree" model="ir.ui.view">
            <field name="name">crm.lead.tree.inherit</field>
            <field name="model">crm.lead</field>
            <field eval="8" name="priority"/>
            <field name="inherit_id" ref="crm.crm_case_tree_view_leads"/>
            <field name="arch" type="xml">
                <tree string="leads">
                    <field name="state"/>
                    <field name="partner_id"/>
                    <field name="user_id"/>
                </tree>
            </field>
        </record>

       <record id="action_lead" model="ir.actions.act_window">
            <field name="name">leads list</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">crm.lead</field>
            <field name="view_type">tree</field> 
            <field name="view_mode">tree</field>        
            <field name="domain">[]</field>
            <field name="context">{}</field>
            <field name="help">Manage the contact titles you want to have available in your system and the way you want to print them in letters and other documents. Some example: Mr., Mrs.
            </field>
        </record>
Ảnh đại diện
Huỷ bỏ
Tác giả

thanks Niyas Raphy but how can i specify the depends? (@api.depends('crm.lead'), like this ??)

Hi, you can give the depends as nikhil described in the answer

Câu trả lời hay nhất

Hello, check that you have specified the crm in the depends

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

Its may help you.


In __openerp__.py

{

    'name': "Module Name",

    'summary': """ """,

    'version': '10.0.1.0.0',

    'author': 'ME',

    'website': "http://www.mycompany.com",

    'company': 'My Company',

    'category': 'Sales',

    'depends': ['base', 'crm'],

    'data': [      

    ],

    'installable': True,

    'auto_install': False,

Add crm in openerp file in depends.

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

issue solved

thanks for your help :)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 22
5881
2
thg 7 21
6339
0
thg 7 18
2994
1
thg 5 18
9421
1
thg 7 17
10574