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> |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步