stock/wizard/stock_picking_make.py fields many2many badly defined

Bug #551731 reported by yohan pannet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

When installing stock module, got the following crash/traceback caused by a many2many fields badly defined

Environment Information :
System : Linux-2.6.24-24-generic-i686-with-debian-lenny-sid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 8.04.3 LTS
Release: 8.04
Codename: hardy
Operating System Release : 2.6.24-24-generic
Operating System Version : #1 SMP Tue Aug 18 17:04:53 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.5.2
OpenERP-Client Version : 5.2dev
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/tiny/openerp-trunk/server/bin/netsvc.py", line 370, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/tiny/openerp-trunk/server/bin/service/web_services.py", line 587, in dispatch
    res = fn(db, uid, *params)
  File "/home/tiny/openerp-trunk/server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/tiny/openerp-trunk/server/bin/osv/osv.py", line 120, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/tiny/openerp-trunk/server/bin/osv/osv.py", line 110, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/tiny/openerp-trunk/server/bin/addons/base/res/res_config.py", line 154, in action_next
    next = self.execute(cr, uid, ids, context=None)
  File "/home/tiny/openerp-trunk/server/bin/addons/base/res/res_config.py", line 384, in execute
    pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/tiny/openerp-trunk/server/bin/pooler.py", line 61, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/home/tiny/openerp-trunk/server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/tiny/openerp-trunk/server/bin/addons/__init__.py", line 781, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/home/tiny/openerp-trunk/server/bin/addons/__init__.py", line 613, in load_module_graph
    register_class(package.name)
  File "/home/tiny/openerp-trunk/server/bin/addons/__init__.py", line 433, in register_class
    imp.load_module(m, *fm)
  File "/home/tiny/openerp-trunk/openobject-addons/stock/__init__.py", line 26, in <module>
    import wizard
  File "/home/tiny/openerp-trunk/openobject-addons/stock/wizard/__init__.py", line 26, in <module>
    import stock_picking_make
  File "/home/tiny/openerp-trunk/openobject-addons/stock/wizard/stock_picking_make.py", line 31, in <module>
    class stock_picking_make(osv.osv_memory):
  File "/home/tiny/openerp-trunk/openobject-addons/stock/wizard/stock_picking_make.py", line 35, in stock_picking_make
    'pickings': fields.many2many('stock.picking', 'Picking', required=True),
TypeError: __init__() takes at least 5 non-keyword arguments (3 given)

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Yohan,
You need to follow the instructions from the developer book.
http://doc.openerp.com/developer/3_10_wizard/index.html
Thanks.

Changed in openobject-addons:
milestone: none → 5.0.8
status: New → Invalid
Revision history for this message
Harry (OpenERP) (hmo-tinyerp) wrote :

Sorry
It was due by committed incomplete work.

We have fixed this bug on trunk-addons at revision 3257.

Thanks

Changed in openobject-addons:
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.