Hi,
I have installed odoo 10.0 in ubuntu server for
nearly a month and suddenly from today I'm getting the following error
while confirming sale for a quotation, please help me to identify the
cause and to solve it
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 640, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 677, in dispatch result = self._call_function(**self.params) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 333, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 101, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 326, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 935, in __call__ return self.method(*args, **kw) File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 506, in response_wrap response = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 889, in call_button action = self._call_kw(model, method, args, {}) File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 877, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 681, in call_kw return call_kw_multi(method, model, args, kwargs) File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 672, in call_kw_multi result = method(recs, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/odoo/addons/portal_sale/models/sale_order.py", line 16, in action_confirm return super(SaleOrder, self).action_confirm() File "/usr/lib/python2.7/dist-packages/odoo/addons/sale/models/sale.py", line 458, in action_confirm order.order_line._action_procurement_create() File "/usr/lib/python2.7/dist-packages/odoo/addons/procurement_jit/sale.py", line 12, in _action_procurement_create res = super(SaleOrderLine, self)._action_procurement_create() File "/usr/lib/python2.7/dist-packages/odoo/addons/sale/models/sale.py", line 672, in _action_procurement_create new_procs.run() File "/usr/lib/python2.7/dist-packages/odoo/addons/stock/models/procurement.py", line 203, in run new_self.filtered(lambda order: order.state == 'running' and order.rule_id.action == 'move').mapped('move_ids').filtered(lambda move: move.state == 'draft').action_confirm() File "/usr/lib/python2.7/dist-packages/odoo/addons/mrp/models/stock_move.py", line 343, in action_confirm return super(StockMove, moves).action_confirm() File "/usr/lib/python2.7/dist-packages/odoo/addons/stock/models/stock_move.py", line 488, in action_confirm procurements |= procurements.create(move._prepare_procurement_from_move()) File "/usr/lib/python2.7/dist-packages/odoo/addons/procurement/models/procurement.py", line 138, in create procurement.run() File "/usr/lib/python2.7/dist-packages/odoo/addons/stock/models/procurement.py", line 199, in run res = super(ProcurementOrder, new_self).run(autocommit=autocommit) File "/usr/lib/python2.7/dist-packages/odoo/addons/procurement/models/procurement.py", line 183, in run res = procurement._run() File "/usr/lib/python2.7/dist-packages/odoo/addons/mrp/models/procurement.py", line 35, in _run return self.make_mo()[self.id] File "/usr/lib/python2.7/dist-packages/odoo/addons/mrp/models/procurement.py", line 85, in make_mo production = ProductionSudo.create(procurement._prepare_mo_vals(bom)) File "/usr/lib/python2.7/dist-packages/odoo/addons/mrp/models/mrp_production.py", line 279, in create production._generate_moves() File "/usr/lib/python2.7/dist-packages/odoo/addons/mrp/models/mrp_production.py", line 292, in _generate_moves factor = production.product_uom_id._compute_quantity(production.product_qty, production.bom_id.product_uom_id) / production.bom_id.product_qty ZeroDivisionError: float division by zero
Next time please use a meaningful title. By doing so, you would have read the error message and already found the solution to your problem yourself :-)