Skip to Content
Menu
This question has been flagged
1 Reply
3607 Views

Hi folks,

I'm new to Odoo/OpenERP and I need some help. I've created a wizard to be displayed on the res.partner page which lists/shows all of the customers. What it does is it will allow me to select multiple customers and add a parent company to them. However, I don't know where to add the wizard folder in the file structure. 

I realize that I have to create my init file, but that's easy once I know where this is supposed to go. Any thoughts would be greatly helpful. Thank you!

Avatar
Discard
Best Answer

Realistically, your folder's file structure can look almost however you want, but naming conventions (at least in v7) would look something like this:

my_custom_module/
    wizard/
        __init__.py
        res_partner_batch_parent.py
        res_partner_batch_parent_view.xml
    __init__.py
    __openerp__.py
    res_partner.py
    res_partner_view.xml

As long as your __init__.py files are all importing folders and files properly and your __openerp__.py file has the proper file structure to import all XML/CSV/CSS/JS/etc files, you should be fine.

my_custom_module/__init__.py:

import res_partner
import wizard

my_custom_module/wizard/__init__.py:

import res_partner_batch_parent 

You could technically have a wizard folder named "asdf" and your wizard Python file named "qwerty.py" and be perfectly fine as long as __init__.py is accurate, but it's terrible naming convention.

Avatar
Discard
Related Posts Replies Views Activity
0
Oct 24
548
0
Sep 23
2206
1
Sep 20
3970
3
Feb 18
3366
2
Dec 17
4220