← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 663233] Re: [trunk] On stock module, Process Incoming Shipments has BUG

 

Hello Jacara,

Could you provide the actual revision number of the addons and GTK client you are using (or mention it if you're using RC1).
If you are not using the latest version, please update, as normally this issue has been fixed in v6RC1 (hence in latest trunk)

Thank you for your feedback!

** Summary changed:

- On stock module, Process Incoming Shipments has BUG
+ [trunk] On stock module, Process Incoming Shipments has BUG

** Changed in: openobject-addons
       Status: New => Incomplete

-- 
[trunk] On stock module, Process Incoming Shipments has BUG
https://bugs.launchpad.net/bugs/663233
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Addons Modules: Incomplete

Bug description:
addons/stock/wizard/stock_partial_picking.py line 59 function :

def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False):

That is called by two time at the one action.

But ids parameter is assigned to stock.picking only second time.

Error message :


Traceback (most recent call last):
  File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 140, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/jacara/Pydev-workspace/monoserp/osv/osv.py", line 130, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/jacara/Pydev-workspace/monoserp/addons/hr/hr_department.py", line 98, in read
    res = super(ir_action_window, self).read(cr, uid, select, fields=fields, context=context, load=load)
  File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 2961, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 3115, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/home/jacara/Pydev-workspace/monoserp/osv/fields.py", line 722, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/home/jacara/Pydev-workspace/monoserp/addons/base/ir/ir_actions.py", line 208, in _search_view
    form_arch = self.pool.get(act.res_model).fields_view_get(cr, uid, False, 'form', context)
  File "/home/jacara/Pydev-workspace/monoserp/addons/stock/wizard/stock_partial_picking.py", line 71, in fields_view_get
    need_product_cost = (pick.type == 'in')
  File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 277, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field type not found in browse_record(stock.picking, 347)'
[2010-10-19 20:02:56,408][monoserp] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "/home/jacara/Pydev-workspace/monoserp/service/netrpc_server.py", line 70, in run
    result = self.dispatch(msg[0], msg[1], msg[2:])
  File "/home/jacara/Pydev-workspace/monoserp/netsvc.py", line 499, in dispatch
    raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException





References