Hello, It has been fixed in lp:~openerp-commiter/openobject-addons/rha-dev- addons2
Revision ID: [email protected] Revision no: 4703 Thanks for reporting, rha ** Changed in: openobject-addons Status: In Progress => Fix Committed -- 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/689678 Title: Error when manufacturing a subproduct with quantity = 0 Status in OpenObject Addons Modules: Fix Committed Bug description: Install mrp_subproduct * Add a subproduct with quantity = 0 in the "Subproduct" tab of a bill of material * Create a manufacturing order using the modified bill of material * Start Production, Produce, => you get the following error : Environment Information : System : Linux-2.6.32-26-generic-i686-with-Ubuntu-10.04-lucid OS Name : posix Distributor ID: Ubuntu Description: Ubuntu 10.04.1 LTS Release: 10.04 Codename: lucid Operating System Release : 2.6.32-26-generic Operating System Version : #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010 Operating System Architecture : 32bit Operating System Locale : fr_BE.UTF8 Python Version : 2.6.5 OpenERP-Client Version : 6.0.0-rc1-1 Last revision No. & ID :1713 launchpad_translations_on_behalf_of_openerp-20101211044634-hs30hc0l5ufmah4a Traceback (most recent call last): File "/home/openerp/trunk/server/bin/netsvc.py", line 489, in dispatch result = ExportService.getService(service_name).dispatch(method, auth, params) File "/home/openerp/trunk/server/bin/service/web_services.py", line 598, in dispatch res = fn(db, uid, *params) File "/home/openerp/trunk/server/bin/osv/osv.py", line 119, in wrapper return f(self, dbname, *args, **kwargs) File "/home/openerp/trunk/server/bin/osv/osv.py", line 203, in execute res = pool.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/openerp/trunk/server/bin/osv/osv.py", line 193, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/openerp/trunk/server/bin/addons/mrp/wizard/mrp_product_produce.py", line 72, in do_produce data['product_qty'], data['mode'], context=context) File "/home/openerp/trunk/server/bin/addons/mrp/mrp.py", line 705, in action_produce stock_mov_obj.action_consume(cr, uid, [produce_product.id], production_qty, context=context) File "/home/openerp/trunk/server/bin/addons/mrp/stock.py", line 109, in action_consume new_moves = super(StockMove, self).action_consume(cr, uid, [move.id], product_qty, location_id, context=context) File "/home/openerp/trunk/server/bin/addons/stock/stock.py", line 2252, in action_consume uos_qty_rest = quantity_rest / move_qty * move.product_uos_qty ZeroDivisionError: float division _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

