Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

my custom module dos not show in module list

Subscribe

Get notified when there's activity on this post

This question has been flagged
moduleproductinstall
18 Replies
49359 Views
Avatar
Andreas

Hi Forum.

the module most add some fields to product.product normal view. i coped the dir to /usr/lib/pymodules/python2.7/openerp/addons/sol_products

are the modules dos not shown in the module list. (installed Modules, apps)

__init__.py

   import sol_product_fields

__openerp__.py

{
    'name': 'Sol Product Fields',
    'version': '1.0',
    'category': 'Product',
    'description': "This module will added some spacial fields to Products View Form, and remove the EAN13 Barcode",
    'author': 'xxxx',
    'website': '',
    'depends': ['base'],
     'demo': [],
    'update_xml':['update.xml'],
    'installable': True,
    'auto_install': False,
    'web': True,
    'js': [],
    'qweb' : [],
    'images': [],
    'css': [],
}

sol_product_fields.py

  from openerp.osv import fields, osv

class product_product(osv.osv):

   _inherit = "product.product"
  _columns = {

            'product_category' : fields.selection([('MCB','MCB'),('Switches','Switches'),('Recepticals','Recepticals')],'Pruduct Category'),
            'corve_ka_rating' : fields.selection([('3kA','3kA'),('6kA','6kA')],'Corve kA Rating'),
            'corve_Pole' : fields.selection([("Pole 1","P1"),("Pole 1+N","P1+N"),("Pole 2","P2"),("Pole 3","P3"),("Pole 4","P4")],'Pole'),
            'corve_current' : fields.selection([('10A','10A'),('16A','16A'),('20A','20A'),('32A','32A'),('40A','40A'),('50A','50A'),('63A','63A')],'Current'),
            'corve_hugh_code': fields.char('Corve Hugh Code ',size=32,required=True, help='Imput Hugh Code'),
    }



product_product()

update.xml

    <?xml version="1.0" encoding="utf-8"?>
<openerp>
  <data>
        <record id="sol_product_normal_form_view" model="ir.ui.view">
          <field name="name">product.normal.form</field>
            <field name="model">product.product</field>
             <field name="inherit_id" ref="product.product_normal_form_view"/>
               <field name="arch" type="xml">
                  <field name="list_price" position="after">
                    <field name="product_category"/>
                    <field name="corve_Pole" attrs="{'invisible': [('product_category', '!=', 'MCB') ] }"/>
                    <field name="corve_current" attrs="{'invisible': [('product_category', '!=', 'MCB') ] }"/>
                    <field name="corve_ka_rating" attrs="{'invisible': [('product_category', '!=', 'MCB') ] }"/>
                    <field name="corve_hugh_code" attrs="{'invisible': [('product_category', '!=', 'MCB') ] }"/>
                  </field>
               </field>
          </record>
        </data>
</openerp>
2
Avatar
Discard
Avatar
IBS Group
Best Answer

First correct your code:

file __openerp__.py:

# needs quotes.
'data': [], # remove this
'demo': [],
'update_xml':['update.xml', 'sol_product_fields_view.xml'], # update this

Click on Settings > Modules > Update Modules List

Once the update is done, go to Settings > Modules > Installed Modules and remove the Installed filter in the search box, after that just search for your module name and it should show up.

Note: In Settings > Users > Users, make sure you have checked the Technical Features access right for your current user.

1
Avatar
Discard
Cameron

Dont forget to restart openerp

IBS Group

It isn't necessary in the case of a newly added module.

Andreas
Author

Hi Karim. already doit before i make this post. do it agen takes no effect. Mybe mi module is wrong ?

Please check my cod.

IBS Group

I updated my answer, please check it. if that doesn't work, please paste the last errors that you can find in OpenERP's log file.

Andreas
Author

Hi Karim. Ok now is visible in the modules. are installation failed:

ValidateError

Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

IBS Group

I updated my answer, check it. Just remove data and put its content in update_xml, don't forget to restart the server before trying to install the module.

Andreas
Author

Ok i updatet my Code in first Post now i get the errors The file is UTF8 coded an edited by Kate

Error: File "/usr/lib/pymodules/python2.7/openerp/addons/sol_products/sol_product_fields.py", line 7 _columns = {' ^ IndentationError: unindent does not match any outer indentation level

IBS Group

Please make sure your code indentations are correct, look in line 7

Andreas
Author

i updated code see first post. now i removed all taps with 4 x space. Created in eclipse.

now i get error Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

Other Tested code gif the same error <xpath expr="/form/sheet/notebook/information/group/group[1]/field[@name='list_price']" position="after"> <field name="product_category"/> .. .. </xpath> </field>

IBS Group

In __openerp__.py move the value from data to update_xml

Andreas
Author

ok Now i found the error. i removed the record to remove ean13 and do a separate module for ean13

Just on question to you. How to remove div, groups, labels, buttons... via custom module ??

IBS Group

I think you can use xpath to achieve those changes, but sometimes it won't work because other forms depend on some elements that you are trying to remove.

Andreas
Author

ok find Dank you very much for your help

IBS Group

You are welcome :-)

Avatar
Simplify it!
Best Answer

You have to press Update Module List first, and then go to Installed modules and remove the Installed filter

1
Avatar
Discard
Avatar
Sraddhanjali Acharya
Best Answer

Put your name of the module in double quotes. 

0
Avatar
Discard
Avatar
Nnamdi Jibunoh
Best Answer

If you are running V9 then you need to enable Developer Mode first by Small_Help_Icon(top right corner) -> About -> Activate Developer Mode.

This is required for most of the menus that are mentioned in the other answers to show up.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Does OpenERP support textile requirements?
module product
Avatar
Avatar
Avatar
Avatar
Avatar
4
जून 24
8363
odoo-14: I get an error when I try to install a module in Digital Ocean Solved
module install
Avatar
Avatar
1
अप्रैल 21
6635
Unable to install module Solved
module install
Avatar
Avatar
2
अप्रैल 15
5436
Click2dial module installation Solved
module install
Avatar
Avatar
Avatar
Avatar
3
जन॰ 24
13079
how to install a module in openerp 7.0 windows?
module install
Avatar
Avatar
1
मार्च 15
4921
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now