** Changed in: openerp-web
       Status: New => Invalid

** Project changed: openerp-web => openobject-server

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/948747

Title:
  cannot apply a custom module

Status in OpenERP Server:
  Invalid

Bug description:
  Hi all, 
     We are beginners of OpenERP. We use OpenERP 6.1 now.
     We try to add a few custom fields on product form: width,depth,height etc, 
in a separate group "Feature". 
  Here are the codes of our module:

  
  -----------__init__.py--------------
  import bfelixproduct

  -----------__openerp__.py ------------------
  {
      "name" : "Bfelix Product",
      "version" : "0.1",
      "author" : "Ying",
      'category': 'Sales Management',
      "depends" : ["base","product"],
      "init_xml" : [],
      "description": "The custom module for managing bfelix product properties, 
such as range, function, dimension etc.",
      "update_xml": ["bfelixproduct_view.xml"],
      "installable": True,
      "auto_install": False,
      
  }

  ---------bfelixproduct.py---------
  from osv import osv, fields

  class product_product(osv.osv):
      _name = "product.product"
      _description = "Custom Product"
      _inherits = "product.product"
      _columns = {
          'width': fields.char('Width', size=5),
          'depth': fields.char('Depth', size=5),
          'height': fields.char('Height', size=5),
          'range': 
fields.selection([('1','Club'),('2','Eco'),('3','French'),('4','Fabrics')],'Range'),
   
          'function': fields.selection([('1','Arm Chairs'),('2','Coffee & Side 
Tables'),('3','Dinning Chairs'),('4','Long 
Sofas'),('5','Ottomans'),('6','Fabrics'),('7','Leathers')],'Function'),         
      
      }           
                           
  product_product()                
      
  --------bfelixproduct_view.xml --------------
  <?xml version="1.0" encoding="utf-8"?>
  <openerp>
      <data>
        <record model="ir.ui.view" id="product_normal_form_view1">
          <field name="name">product.normal.form1</field>
          <field name="model">product.product</field>
          <field name="inherit_id" ref="product.product_normal_form_view" />
          <field name="type">form</field>
          <field name="arch" type="xml">
                  <page string="Information" position="inside">
                       <group colspan="2"> 
                            <separator string="Feature" colspan="2"/>
                                <field name="width"/>   
                                <field name="depth"/>
                                <field name="height"/>
                                <field name="range"/>
                                <field name="function"/>                        
                
                         </group>                        
                </page> 
          </field>      
        </record>               
      </data>
  </openerp>

  
  when installing the above module, we get the error :

  Server Traceback (most recent call last):
    File "C:\Program Files (x86)\OpenERP 
6.1-1\server\openerp\addons\web\common\http.py", line 592, in send
    File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\netsvc.py", 
line 360, in dispatch_rpc
    File "C:\Program Files (x86)\OpenERP 
6.1-1\server\.\openerp\service\web_services.py", line 572, in dispatch
    File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\osv.py", 
line 167, in execute_kw
    File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\osv.py", 
line 121, in wrapper
    File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\osv.py", 
line 176, in execute
    File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\osv.py", 
line 164, in execute_cr
    File "C:\Program Files (x86)\OpenERP 
6.1-1\server\openerp\addons\base\module\wizard\base_module_upgrade.py", line 
101, in upgrade_module
    File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\pooler.py", 
line 39, in restart_pool
    File "C:\Program Files (x86)\OpenERP 
6.1-1\server\.\openerp\modules\registry.py", line 160, in new
    File "C:\Program Files (x86)\OpenERP 
6.1-1\server\.\openerp\modules\loading.py", line 338, in load_modules
    File "C:\Program Files (x86)\OpenERP 
6.1-1\server\.\openerp\modules\loading.py", line 253, in load_marked_modules
    File "C:\Program Files (x86)\OpenERP 
6.1-1\server\.\openerp\modules\loading.py", line 167, in load_module_graph
    File "C:\Program Files (x86)\OpenERP 
6.1-1\server\.\openerp\modules\registry.py", line 97, in load
    File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\orm.py", 
line 919, in create_instance
    File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\orm.py", 
line 1048, in __init__
    File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\orm.py", 
line 3255, in _inherits_check
  AttributeError: 'str' object has no attribute 'items'.

  Realy need some help, 
  thanks in advance 
  Ying

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/948747/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to