<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[产品里的实际库存是怎么得来，查看了源代码是通过fucntion计算出来的，看不懂是怎么调用？]]></title><description><![CDATA[<p dir="auto">这段代码键值里只有（ids,0.0）返回的字典，怎么得出来的值呢？求大神们解释下，谢谢！！<br />def _get_product_available_func(states, what):<br />        def _product_available(self, cr, uid, ids, name, arg, context=None):<br />            return {}.fromkeys(ids, 0.0)<br />        return _product_available<br />    _product_qty_available = _get_product_available_func(('done',), ('in', 'out'))</p>
]]></description><link>https://odoo.net.cn/topic/3705/产品里的实际库存是怎么得来-查看了源代码是通过fucntion计算出来的-看不懂是怎么调用</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 08:53:17 GMT</lastBuildDate><atom:link href="https://odoo.net.cn/topic/3705.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Jun 2015 01:07:29 GMT</pubDate><ttl>60</ttl></channel></rss>