Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4422 Vizualizări

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!

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
oct. 24
1052
0
sept. 23
2809
1
sept. 20
4805
3
feb. 18
4062
2
dec. 17
4866