Odoo ir value 分析
2015-03-14 19:47
106 查看
源代码位置:openerp/addons/base/ir/ir_values.py
一,可用的动作:
1.client_action_multi :wizard 动作
2.client_print_multi : 打印报表动作
3.client_acton_related: 相关链接
4.tree_but_open:双击树形视图动作
5.tree_but_action:同tree_but_open
_columns = { 'name': fields.char('Name', required=True), 'model': fields.char('Model Name', select=True, required=True, help="Model to which this entry applies"), # TODO: model_id and action_id should be read-write function fields 'model_id': fields.many2one('ir.model', 'Model (change only)', size=128, help="Model to which this entry applies - " "helper field for setting a model, will " "automatically set the correct model name"), 'action_id': fields.many2one('ir.actions.actions', 'Action (change only)', help="Action bound to this entry - " "helper field for binding an action, will " "automatically set the correct reference"), 'value': fields.text('Value', help="Default value (pickled) or reference to an action"), 'value_unpickle': fields.function(_value_unpickle, fnct_inv=_value_pickle, type='text', string='Default value or action reference'), 'key': fields.selection([('action','Action'),('default','Default')], 'Type', select=True, required=True, help="- Action: an action attached to one slot of the given model\n" "- Default: a default value for a model field"), 'key2' : fields.char('Qualifier', select=True, help="For actions, one of the possible action slots: \n" " - client_action_relate\n" 'Type', select=True, required=True, help="- Action: an action attached to one slot of the given model\n" "- Default: a default value for a model field"), 'key2' : fields.char('Qualifier', select=True, help="For actions, one of the possible action slots: \n" " - client_action_multi\n" " - client_print_multi\n" " - client_action_relate\n" " - tree_but_open\n" "For defaults, an optional condition" ,), 'res_id': fields.integer('Record ID', select=True, help="Database identifier of the record to which this applies. " "0 = for all records"), 'user_id': fields.many2one('res.users', 'User', ondelete='cascade', select=True, help="If set, action binding only applies for this user."), 'company_id': fields.many2one('res.company', 'Company', ondelete='cascade', select=True, help="If set, action binding only applies for this company") } _defaults = { 'key': 'action', 'key2': 'tree_but_open', }
一,可用的动作:
1.client_action_multi :wizard 动作
2.client_print_multi : 打印报表动作
3.client_acton_related: 相关链接
4.tree_but_open:双击树形视图动作
5.tree_but_action:同tree_but_open
相关文章推荐
- Odoo ir actions 分析
- HBase源码分析之KeyValue
- Oracle 11g r2分析函数新特性(一)分析函数NTH_VALUE
- oracle分析函数系列之first_value/last_value:在记录集中查找第一条记录和最后一条记录
- linux下配置文件key-value程序分析
- 算法分析与设计丨第三周丨LeetCode(6)——Find Largest Value in Each Tree Row(Medium)
- Oracle分析函数:First_Value
- 算法分析与设计丨第四周丨LeetCode(7)——Find Bottom Left Tree Value(Medium)
- 【转】Oracle分析函数:First_Value
- Hive分析窗口函数(四) LAG,LEAD,FIRST_VALUE,LAST_VALUE
- Oracle分析函数总结(2) - 排序 - rank,dense_rank,row_number,first,first_value,last,last_value,lag,lead
- 盈余量分析(earned value analysis)
- Hive分析窗口函数(四) LAG,LEAD,FIRST_VALUE,LAST_VALUE
- 分析SQL语句的性能-- Compare NText Column value by using CheckSum
- 将int字段改为decimal类型后出现1264 Out of range value的问题分析和处理之二
- 【Oracle】分析函数first、last、first_value、last_value
- Cannot modify the return value of ...,because it is not a variable 错误分析与解决
- iOS- 基础 [NSString boolValue]结果分析
- 【转】边界值分析(Boundary Value Analysis)