Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
openerp在显示分类、部门、库位等信息的时候,总是会显示从根目录开始的一个划分;例如我有一个产品二级分类叫“膏剂”当我选择“膏剂”以后,无论是列表视图还是表单视图中,分类的显示都是“所有产品 / 膏剂”若分类级别比较多的话,在列表视图里面 就太占位置了 也不美观 有没有办法让它仅显示当前分类呢??
class kr_stock_location(osv.osv): _inherit = 'stock.location' def name_get(self, cr, uid, ids, context=None): return [ (loc.id,loc.name) for loc in self.browse(cr,uid,ids,context) ]