crash when product does not have a company
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openerp-stock-delivery-times |
New
|
Undecided
|
Unassigned |
Bug Description
stock_delivery_
This causes problems when entering a sale_order_line for a product that is not tied to a company. See crash report below.
expected result: when product does not refer to a company, lead time should be taken from the currently active company in the user session, or from the company in the user_preferences.
OpenERP Server Error
Client Traceback (most recent call last):
File "/home/
response[
File "/home/
return self._call_kw(req, model, method, args, kwargs)
File "/home/
return getattr(
File "/home/
result = self.proxy.
File "/home/
result = self.session.
File "/home/
raise xmlrpclib.
Server Traceback (most recent call last):
File "/home/
return openerp.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
cr, uid, info_product, qty=total_qty, context=context)
File "/home/
delay += product.
TypeError: unsupported operand type(s) for +=: 'float' and 'NoneType'
Related branches
- Benoit Guillot - http://www.akretion.com: Approve
-
Diff: 66 lines (+34/-2)2 files modifiedstock_delivery_times_advanced/__openerp__.py (+1/-1)
stock_delivery_times_advanced/product.py (+33/-1)