这段代码键值里只有(ids,0.0)返回的字典,怎么得出来的值呢?求大神们解释下,谢谢!!
def _get_product_available_func(states, what):
def _product_available(self, cr, uid, ids, name, arg, context=None):
return {}.fromkeys(ids, 0.0)
return _product_available
_product_qty_available = _get_product_available_func(('done',), ('in', 'out'))