摘要: 1.在Action中定义,context用于传递搜索条件和分组条件,在搜索视图中默认显示:示例代码: Leaves Summary hr.holidays form tree,form {'search_default_group_type': 1, 'search_default_validated': 1} [('holiday_type','=','employee')] View... 阅读全文
posted @ 2013-07-14 19:58 cnshen 阅读(3066) 评论(2) 推荐(0) 编辑
摘要: 1.在Action中定义,domain用于对象默认的搜索条件:示例: Sales Orders ir.actions.act_window sale.order form tree,form,calendar,graph {} [('state','not in',('draft','sent','cancel'))] C... 阅读全文
posted @ 2013-07-14 12:43 cnshen 阅读(4603) 评论(1) 推荐(0) 编辑
摘要: 深入理解报表运行机制原文:http://blog.sina.com.cn/s/blog_57ded94e01014ppd.html1) OpenERP报表的基本运行机制OpenERP报表的一般定义语法是:这个定义的含义是,在对象hr.holidays上增加报表操作(model="hr.holidays"),该报表操作的显示字符是C2C Demo Report(string="C2C Demo Report"),当用户点击该操作字符(C2C Demo Report),系统调用名为sandbox_c2c_reporting_tools(name=" 阅读全文
posted @ 2013-07-14 10:49 cnshen 阅读(622) 评论(0) 推荐(0) 编辑