← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 715582] [NEW] no partial deliveries possible (crash)

 

Public bug reported:

I can't do partial deliveries
1. I create a sales order with 30 pieces
2. I want to deliver 10 pieces from this order now, so I go to "Warehouse -> Product Moves -> Deliver Products" and hit "partial"
3. I edit the quantity to 10 and hit "Deliver"
4. I get an application error as following

Traceback (most recent call last):
  File "/home/odoo/openerp/server/bin/netsvc.py", line 490, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/odoo/openerp/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/odoo/openerp/server/bin/addons/stock/wizard/stock_partial_move.py", line 219, in do_partial
    move_obj.do_partial(cr, uid, moves_ids_final, partial_datas, context=context)
  File "/home/odoo/openerp/server/bin/addons/stock/stock.py", line 2473, in do_partial
    'product_uos_qty':move.product_qty - product_qty,
  File "/home/odoo/openerp/server/bin/addons/stock/stock.py", line 1616, in write
    for move in self.browse(cr, uid, ids, context=context):
  File "/home/odoo/openerp/server/bin/osv/orm.py", line 189, in __getitem__
    name, self))
KeyError: "Field '0' does not exist in object 'browse_record(stock.move, 124)'"

The result is, that a delivery order with 10 pieces is done, but the original delivery order still has 30 pieces instead of 20.
Also the progress bar in the sales order list is wrong (100% delivered, instead of 33 %)

I think this is a serious bug.

I had this one on a 6.0.1 Windows Installation and it also appears in
the online demo (as shown above)

** Affects: openobject-addons
     Importance: Undecided
         Status: New

** Description changed:

  I can't do partial deliveries
  1. I create a sales order with 30 pieces
  2. I want to deliver 10 pieces from this order now, so I go to "Warehouse -> Product Moves -> Deliver Products" and hit "partial"
  3. I edit the quantity to 10 and hit "Deliver"
  4. I get an application error as following
  
- 
  Traceback (most recent call last):
-   File "/home/odoo/openerp/server/bin/netsvc.py", line 490, in dispatch
-     result = ExportService.getService(service_name).dispatch(method, auth, params)
-   File "/home/odoo/openerp/server/bin/service/web_services.py", line 599, in dispatch
-     res = fn(db, uid, *params)
-   File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper
-     return f(self, dbname, *args, **kwargs)
-   File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute
-     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
-   File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr
-     return getattr(object, method)(cr, uid, *args, **kw)
-   File "/home/odoo/openerp/server/bin/addons/stock/wizard/stock_partial_move.py", line 219, in do_partial
-     move_obj.do_partial(cr, uid, moves_ids_final, partial_datas, context=context)
-   File "/home/odoo/openerp/server/bin/addons/stock/stock.py", line 2473, in do_partial
-     'product_uos_qty':move.product_qty - product_qty,
-   File "/home/odoo/openerp/server/bin/addons/stock/stock.py", line 1616, in write
-     for move in self.browse(cr, uid, ids, context=context):
-   File "/home/odoo/openerp/server/bin/osv/orm.py", line 189, in __getitem__
-     name, self))
+   File "/home/odoo/openerp/server/bin/netsvc.py", line 490, in dispatch
+     result = ExportService.getService(service_name).dispatch(method, auth, params)
+   File "/home/odoo/openerp/server/bin/service/web_services.py", line 599, in dispatch
+     res = fn(db, uid, *params)
+   File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper
+     return f(self, dbname, *args, **kwargs)
+   File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute
+     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
+   File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr
+     return getattr(object, method)(cr, uid, *args, **kw)
+   File "/home/odoo/openerp/server/bin/addons/stock/wizard/stock_partial_move.py", line 219, in do_partial
+     move_obj.do_partial(cr, uid, moves_ids_final, partial_datas, context=context)
+   File "/home/odoo/openerp/server/bin/addons/stock/stock.py", line 2473, in do_partial
+     'product_uos_qty':move.product_qty - product_qty,
+   File "/home/odoo/openerp/server/bin/addons/stock/stock.py", line 1616, in write
+     for move in self.browse(cr, uid, ids, context=context):
+   File "/home/odoo/openerp/server/bin/osv/orm.py", line 189, in __getitem__
+     name, self))
  KeyError: "Field '0' does not exist in object 'browse_record(stock.move, 124)'"
  
  The result is, that a delivery order with 10 pieces is done, but the original delivery order still has 30 pieces instead of 20.
  Also the progress bar in the sales order list is wrong (100% delivered, instead of 33 %)
  
  I think this is a serious bug.
+ 
+ I had this one on a 6.0.1 Windows Installation and it also appears in
+ the online demo (as shown above)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/715582

Title:
  no partial deliveries possible (crash)

Status in OpenERP Modules (addons):
  New

Bug description:
  I can't do partial deliveries
  1. I create a sales order with 30 pieces
  2. I want to deliver 10 pieces from this order now, so I go to "Warehouse -> Product Moves -> Deliver Products" and hit "partial"
  3. I edit the quantity to 10 and hit "Deliver"
  4. I get an application error as following

  Traceback (most recent call last):
    File "/home/odoo/openerp/server/bin/netsvc.py", line 490, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/odoo/openerp/server/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/odoo/openerp/server/bin/addons/stock/wizard/stock_partial_move.py", line 219, in do_partial
      move_obj.do_partial(cr, uid, moves_ids_final, partial_datas, context=context)
    File "/home/odoo/openerp/server/bin/addons/stock/stock.py", line 2473, in do_partial
      'product_uos_qty':move.product_qty - product_qty,
    File "/home/odoo/openerp/server/bin/addons/stock/stock.py", line 1616, in write
      for move in self.browse(cr, uid, ids, context=context):
    File "/home/odoo/openerp/server/bin/osv/orm.py", line 189, in __getitem__
      name, self))
  KeyError: "Field '0' does not exist in object 'browse_record(stock.move, 124)'"

  The result is, that a delivery order with 10 pieces is done, but the original delivery order still has 30 pieces instead of 20.
  Also the progress bar in the sales order list is wrong (100% delivered, instead of 33 %)

  I think this is a serious bug.

  I had this one on a 6.0.1 Windows Installation and it also appears in
  the online demo (as shown above)





Follow ups

References