Marco Dieckhoff has proposed merging 
lp:~dieck/openobject-addons/stock_trackall-6.0-onchange into 
lp:~openerp-dev/openobject-addons/6.0-stock_trackall.

Requested reviews:
  Jacques-Etienne Baudoux (OpenERP) (jba-openerp)

For more details, see:
https://code.launchpad.net/~dieck/openobject-addons/stock_trackall-6.0-onchange/+merge/77489

AttributeError: 'stock.move.memory.in' object has no attribute 
'on_change_product_qty'

Reproduceable by:
Incoming Shipments, State: Available, => Process, Wizard opens, Change 
Quantity, Press Tab key


As mentioned in 
https://code.launchpad.net/~dieck/openobject-addons/stock_trackall-6.0/+merge/61947,
 "stock.move.memory.in" inherit from "stock.move.memory.out".

But I suppose this happens _before_ on_change_product_qty is introduced in 
stock_trackall/stock_trackall.py.

I tried adding
  class stock_partial_move_memory_in(osv.osv_memory):
      _inherit = "stock.move.memory.out"
      _name = "stock.move.memory.in"
  stock_partial_move_memory_in()

to achieve some kind of re-inheritance, after stock_partial_move_memory_out in 
stock_trackall/stock_trackall.py, and it solves the problem.

And it solves the one from 
https://code.launchpad.net/~dieck/openobject-addons/stock_trackall-6.0/+merge/61947,
 too.

-- 
https://code.launchpad.net/~dieck/openobject-addons/stock_trackall-6.0-onchange/+merge/77489
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-stock_trackall.
=== modified file 'stock_trackall/stock_trackall.py'
--- stock_trackall/stock_trackall.py	2011-06-16 05:20:01 +0000
+++ stock_trackall/stock_trackall.py	2011-09-29 09:31:28 +0000
@@ -97,5 +97,9 @@
 
 stock_partial_move_memory_out()
 
+class stock_partial_move_memory_in(osv.osv_memory):
+    _inherit = "stock.move.memory.out"
+    _name = "stock.move.memory.in"
+stock_partial_move_memory_in()
 
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

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

Reply via email to