Loading

OpenERP how to set the tree view limit

1
2
3
4
5
6
7
8
9
10
11
12
13
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:

1
2
3
4
5
6
7
8
9
10
11
<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>   

  

posted @   青岛欧姆网络科技  阅读(846)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
主题色彩