Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

module not show in open erp

By
bakhtawar
on 11/27/13, 4:33 AM 1,003 views

i try to code in eclipse and when i run it show me any error

This is test_module.py file

from osv import osv from osv import fields class MyClass(osv.osv): ''' classdocs ''' _name='my.class' _columns={ 'name':fields.char("Name",size=128,), 'code':fields.char("Code",size=127,), } MYClass()

def __init__(selfparams):
'''
Constructor
'''

and this is xml file

<?xml version=“1.0″ encoding=“utf-8″?>

<openerp>

<data>

   <record model=“ir.ui.view” id=“test_base_form”>

       <field name=“name”>test.base.form</field>

           <field name=“model”>test.base</field>

           <field name=“type”>form</field>

           <field name=“arch” type=“xml”>

               <form string=“Test Base”>

                   <field name=“name”/>

                   <field name=“code”/>

               </form>

          </field>

    </record>

    <record model=“ir.ui.view” id=“test_base_tree”>

        <field name=“name”>test.base.tree</field>

        <field name=“model”>test.base</field>

        <field name=“type”>tree</field>

        <field name=“arch” type=“xml”>

            <tree string=“Test Base”>

                <field name=“name”/>

                <field name=“code”/>

            </tree>

        </field>

    </record>

    <record model=“ir.actions.act_window” id=“action_test_seq”>

        <field name=“name”>Test Base</field>

        <field name=“res_model”>test.base</field>

        <field name=“view_type”>form</field>

        <field name=“view_mode”>tree,form</field>

    </record>

    <menuitem id=“menu_test_base_main” name=“Test Base”/>

    <menuitem id=“menu_test_base” parent=“menu_test_base_main”

              name=“Test Base” action=“action_test_seq”/>

</data>

</openerp>

and when i go to init_py file and import like this import test_module it can not me show any error then when i want to show this modulue and i go to settings=update modulue list then in open erp it can not show me any modulue \ where is the problem?\ iutry so many time but not show modulue in open erp

0
semah
On 11/27/13, 6:19 AM

You have to select installed modules then remove the installed filter in the right top corner and search for your new module.

i do this but always modulue not visible in open erp

bakhtawar
on 11/27/13, 11:43 AM

You have to add the __openerp__.py file

semah
on 11/27/13, 12:14 PM

i also add this file

bakhtawar
on 11/27/13, 1:38 PM

If you want, you can send me your source code, I will take a look on it: openerp.geek@gmail.com

semah
on 11/27/13, 2:59 PM

ok i will send

bakhtawar
on 11/27/13, 3:11 PM

btw i post all code ..what i send u in mail?

bakhtawar
on 11/27/13, 3:59 PM

I didn't receive anything. Send all your module files( __init__.y, __openerp__.py, etc ). I am trying to help you

semah
on 11/27/13, 4:06 PM

i send u please check mail

bakhtawar
on 11/27/13, 4:27 PM

Please check your mail. Your module is now seen in module list. Don't forget to mark my response as accepted.

semah
on 11/28/13, 4:29 AM
0
Ayyappan
On 11/27/13, 6:09 AM

You need to create __openerp__.py file.

i also create this file but modulue is not visible in open erp

bakhtawar
on 11/27/13, 11:44 AM

In __openerp__.py file, 'installable' is True?

Ayyappan
on 11/27/13, 12:06 PM

yes it is true

bakhtawar
on 11/27/13, 1:38 PM

Give me __openerp__.py file details.

Ayyappan
on 11/27/13, 1:51 PM

{ "name" : "Test Module", "version" : "1.1", "author" : "Ishtiaq",

"depends" : ["base"], "init_xml" : [], "demo_xml" : [], "update_xml" : ["test_view.xml"], "installable": True, "active": True }

bakhtawar
on 11/27/13, 2:02 PM

i tried so many times but the module not show in open erp how i show it there is no error in eclipse all files are correct but always not show =(

bakhtawar
on 11/27/13, 6:32 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/27/13, 4:33 AM
Seen: 1003 times
Last updated: 3/16/15, 8:10 AM