Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm working on my first OpenERP module. (Woo hoo!)
All I really want to do is to add existing fields 'product_name' and 'product_code' (from product.supplierinfo) into View #233 (Product form view). I'm talking about the Suppliers area that appears near the bottom of a product form view --> Procurements tab. Developer mode tells me this area is the 'seller_ids' field from product.supplierinfo.
Since I'm not defining any new models or fields, do I still need to have a 'mymodule.py' file? Or is a new .xml file for the view all I need? If I still need a .py file, what do I put in it?
You don't need a "mymodule.py" file, but you do need a __iniit__.py and __openerp__.py files.
The former can be empty, is just to indicate that your folder (where you are creating your .xml and so on) is in fact a module.
In the __openerp__.py file yo need to add the xml as data:
'name': 'My Module',
'description' : """
Added fields to suppliers tree of product form view
Hope it helps, and welcome to OpenERP/Odoo!
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/22/14, 4:06 PM|
|Seen: 962 times|
|Last updated: 3/16/15, 8:10 AM|