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>    
    

      

  • 相关阅读:
    16-镜像命名的最佳实践
    15-RUN vs CMD vs ENTRYPOINT
    14-Dockerfile常用指令
    13-调试Dockerfile
    12-镜像的缓存特性
    11-Dockerfile构建镜像
    10-构建镜像
    09-镜像的分层结构
    08-base镜像
    07-镜像-最小的镜像
  • 原文地址:https://www.cnblogs.com/kfx2007/p/3763050.html
Copyright © 2011-2022 走看看