zoukankan      html  css  js  c++  java
  • OpenERP how to set the tree view limit

    return {
                'name':u'库存报表',
                'view_type':'form',
                'view_mode':'tree,form',
                'res_model':'rainsoft.account.stock.line',
                'type':'ir.actions.act_window',
                'context':{
                    'location': location.id,
                    'date_start':period.date_start,
                    'date_stop':period.date_stop,
                    'period':period.id,
                },
    	    'limit':10000,
    

    add limit:10000 to your actioon which render the tree view.

    or in xml file:

     <record id="action_rainsoft_account_stock" model="ir.actions.act_window">
                <field name="name">Account Stock Query</field>
                <field name="res_model">rainsoft.account.stock</field>
                <field name="type">ir.actions.act_window</field>
                <field name="view_type">form</field>
                <field name="view_mode">tree,form</field>
                <field name="view_id" ref="rainsoft_account_stock_form_view"/>
                <field name="context">{}</field>
                <field name="target">new</field>
                <field name="limit">10000</field>
            </record>    
    

      

  • 相关阅读:
    判断二叉树是否BST
    树基础训练(一)
    Trie 简介
    二叉树的一些补充
    红黑树
    平衡二叉树(AVL)介绍及其实现
    二叉查找树(BST)的实现
    二叉树基本知识
    微信小程序提示框
    urllib3使用指南
  • 原文地址:https://www.cnblogs.com/kfx2007/p/3763050.html
Copyright © 2011-2022 走看看